diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-09-16 15:07:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 15:07:40 +0300 |
commit | 7339990cd95c72069550aa04b18124e287ae8721 (patch) | |
tree | f18539adf3558c031badbf4c9f4fb2df4a2e686f /nextcloud_install_production.sh | |
parent | e4bb8a9e26785fefe7a5d910ee2ae69e1a23cfef (diff) |
fix another bug
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index addac6cf..7bece815 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -817,12 +817,21 @@ then sudo /usr/lib/update-notifier/update-motd-updates-available --force fi +# It has to be this order: +# Download scripts +# chmod +x +# Set permissions for ncadmin in the change scripts + # Get needed scripts for first bootup download_script GITHUB_REPO nextcloud-startup-script download_script STATIC instruction download_script STATIC history download_script NETWORK static_ip +# Make $SCRIPTS excutable +chmod +x -R "$SCRIPTS" +chown root:root -R "$SCRIPTS" + # Prepare first bootup check_command run_script STATIC change-ncadmin-profile check_command run_script STATIC change-root-profile @@ -833,10 +842,6 @@ then check_command sed -i "s|VM|Home/SME Server|g" $SCRIPTS/nextcloud-startup-script.sh fi -# Make $SCRIPTS excutable -chmod +x -R "$SCRIPTS" -chown root:root -R "$SCRIPTS" - # Reboot msg_box "Installation almost done, system will reboot when you hit OK. |