node-ify setup_infra.sh
This commit is contained in:
@@ -11,7 +11,6 @@ sudo -k || sudo --reset-timestamp
|
||||
# checks if all scripts are sudo access
|
||||
scripts=("${SOURCE_DIR}/src/scripts/rmappdir.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/createappdir.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/setup_infra.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/reloadnginx.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/backupbox.sh" \
|
||||
"${SOURCE_DIR}/src/scripts/backupapp.sh" \
|
||||
@@ -33,12 +32,6 @@ for script in "${scripts[@]}"; do
|
||||
fi
|
||||
done
|
||||
|
||||
# setup_infra requires node to be in path for the root user
|
||||
if ! test -x /usr/bin/node 2>/dev/null; then
|
||||
echo "node is not in PATH for the root user. Create a symlink to /usr/bin/node possibly"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
image_missing=""
|
||||
|
||||
images=$(node -e "var i = require('${SOURCE_DIR}/src/infra_version.js'); console.log(Object.keys(i.images).map(function (x) { return i.images[x].tag; }).join('\n'));"; echo $TEST_IMAGE)
|
||||
|
||||
Reference in New Issue
Block a user