Skip to content
Snippets Groups Projects
Verified Commit 6ad5b0bf authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

Try setting -e at the top of the script

parent 6733edb1
No related branches found
No related tags found
1 merge request!300Resolve "Migrate jobs to postStartCommand"
Pipeline #31574 passed with stages
in 8 minutes and 57 seconds
......@@ -26,6 +26,7 @@ data:
# * Persists and loads the config.json config file
# * Updates database indices, columns, keys, etc needed after NC upgrade
# * Writes a log to /var/www/html/data/postStart.log
set -e
exec > /var/www/tmp/postStart-$(date +"%s").log
exec 2> /var/www/tmp/postStart-$(date +"%s")_error.log
......@@ -74,12 +75,6 @@ data:
echo "Nextcloud is now installed, we can do our thing!"
# The `php occ status` command can, and is allowed to, fail when the `occ`
# file already exists, but the rest of the Nextcloud files have not been
# synchronized yet. However from this point in the script onwards,
# everything should succeed.
set -e
# Enable app store so we can run `install` and `enable` commands
run_as "php $occ config:system:set appstoreenabled --type boolean --value true"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment