rootless containers

This commit is contained in:
Juan Jimenez-Anca
2021-02-20 10:54:01 +00:00
parent 4bbc8c41cf
commit 47dcb5f2b1
10 changed files with 78 additions and 100 deletions

View File

@@ -16,14 +16,14 @@ function checkConfigExists() {
if [ "$1" = 'start' ]; then
checkConfigExists
su frappe -c "node /home/frappe/frappe-bench/apps/frappe/socketio.js"
node /home/frappe/frappe-bench/apps/frappe/socketio.js
elif [ "$1" = 'doctor' ]; then
su frappe -c "node /home/frappe/frappe-bench/apps/frappe/health.js"
node /home/frappe/frappe-bench/apps/frappe/health.js
else
exec su frappe -c "$@"
exec -c "$@"
fi