aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-25 17:48:09 -0300
committerEuAndreh <eu@euandre.org>2021-02-25 17:48:09 -0300
commit55b8a27f1a54be8c4be5cc73cfaec929fdd65697 (patch)
tree6b4fb8c7097ee3fa6710d8f63114fa00abe74e04
parentTODOs.md: Update services list (diff)
downloadserver-55b8a27f1a54be8c4be5cc73cfaec929fdd65697.tar.gz
server-55b8a27f1a54be8c4be5cc73cfaec929fdd65697.tar.xz
scripts/deploy: ShellCheck
-rwxr-xr-xscripts/deploy3
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 && \