diff options
Diffstat (limited to 'nextcloudpi.sh')
-rw-r--r-- | nextcloudpi.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nextcloudpi.sh b/nextcloudpi.sh index 7501f55f..c1d3cefd 100644 --- a/nextcloudpi.sh +++ b/nextcloudpi.sh @@ -109,10 +109,13 @@ touch /run/ncp.log chmod 640 /run/ncp.log chown root:www-data /run/ncp.log launch_script $1 &> /run/ncp.log +RET=$? # clean log for the next PHP backend call to start clean, # but wait until everything from current execution is read sleep 0.5 && echo "" > /run/ncp.log + +exit $RET EOF chmod 700 /home/www/ncp-launcher.sh echo "www-data ALL = NOPASSWD: /home/www/ncp-launcher.sh , /sbin/halt" >> /etc/sudoers |