diff options
Diffstat (limited to 'scripts/deploy')
-rwxr-xr-x | scripts/deploy | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/deploy b/scripts/deploy index f529d03..dd70310 100755 --- a/scripts/deploy +++ b/scripts/deploy @@ -7,7 +7,7 @@ if [ -z "$NAME" ]; then exit 2 fi -FILE="$(find -name hostname.txt -exec grep -l "$NAME" {} \;)" +FILE="$(find . -name hostname.txt -exec grep -l "$NAME" {} \;)" if [ -z "$FILE" ]; then printf 'Unknown hostname "%s"\n' "$NAME" >&2 exit 2 @@ -29,6 +29,7 @@ fi TLD="$(cat "$DIR"/tld.txt)" DIRS='/opt /srv' +# shellcheck disable=2029 ssh "$TLD" "\ sudo mkdir -p $DIRS && \ sudo chown $USER:users -R $DIRS && \ |