Call backuptask.js directly as root to avoid trampoline shell scripts

This commit is contained in:
Johannes Zellner
2017-04-17 15:10:29 +02:00
parent 9354784f01
commit ff3a748398
4 changed files with 50 additions and 33 deletions

View File

@@ -19,7 +19,8 @@ scripts=("${SOURCE_DIR}/src/scripts/rmappdir.sh" \
"${SOURCE_DIR}/src/scripts/update.sh" \
"${SOURCE_DIR}/src/scripts/collectlogs.sh" \
"${SOURCE_DIR}/src/scripts/reloadcollectd.sh" \
"${SOURCE_DIR}/src/scripts/authorized_keys.sh")
"${SOURCE_DIR}/src/scripts/authorized_keys.sh" \
"${SOURCE_DIR}/src/backuptask.js")
for script in "${scripts[@]}"; do
if [[ $(sudo -n "${script}" --check 2>/dev/null) != "OK" ]]; then