Update start.debian.sh

1/ Fix {} arround user_notifications.json file => if there is just one file, this create a file named "{user_notifications.json} ;)

2/ Fix group for the above file
This commit is contained in:
Yannick Torrès
2024-12-09 19:06:18 +01:00
committed by GitHub
parent ac0c13dced
commit 03056f7823

View File

@@ -100,11 +100,11 @@ fi
# Create the execution_queue.log file if it doesn't exist
touch "${INSTALL_DIR}"/log/{app.log,execution_queue.log,app_front.log,app.php_errors.log,stderr.log,stdout.log,db_is_locked.log}
touch "${INSTALL_DIR}"/api/{user_notifications.json}
touch "${INSTALL_DIR}"/api/user_notifications.json
# Fixing file permissions
echo "[INSTALL] Fixing file permissions"
chown root:www-data "${INSTALL_DIR}"/api/user_notifications.json
echo "[INSTALL] Fixing WEB_UI_DIR: ${WEB_UI_DIR}"