diff options
author | EuAndreh <eu@euandre.org> | 2021-02-25 17:48:09 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-02-25 17:48:09 -0300 |
commit | 55b8a27f1a54be8c4be5cc73cfaec929fdd65697 (patch) | |
tree | 6b4fb8c7097ee3fa6710d8f63114fa00abe74e04 | |
parent | TODOs.md: Update services list (diff) | |
download | server-55b8a27f1a54be8c4be5cc73cfaec929fdd65697.tar.gz server-55b8a27f1a54be8c4be5cc73cfaec929fdd65697.tar.xz |
scripts/deploy: ShellCheck
-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 && \ |