Check supervisor configs with check-config.sh

This commit is contained in:
cytopia 2020-11-22 11:13:04 +01:00
parent e9281c9b40
commit fda37efc64
No known key found for this signature in database
GPG Key ID: 6D56EDB8695128A2

View File

@ -504,6 +504,7 @@ DEVILBOX_DIRS=(
"compose"
"log"
"mod"
"supervisor"
)
# Check allowed directory permissions: 0755 0775 0777
@ -572,6 +573,7 @@ DEVILBOX_DIRS=(
"cfg"
"compose"
"mod"
"supervisor"
)
# Check allowed directory permissions: 0644 0664 0666
@ -833,6 +835,14 @@ else
log_debug "[startup] No custom script present in autostart/"
fi
# supervisor/
if find "supervisor" | grep -E '\.conf$' >/dev/null; then
log_note "[supervisor] Custom config present in supervisor/"
CUSTOMIZATIONS=$(( CUSTOMIZATIONS + 1 ))
else
log_debug "[supervisor] No custom config present in supervisor/"
fi
# bash/
if find "bash" | grep -E '\.sh$' >/dev/null; then
log_note "[bash] Custom script present in bash/"