Commit 71a783b7 authored by w4t's avatar w4t

wtserver 0.46

parent 45a3f93e
...@@ -315,9 +315,9 @@ EOF ...@@ -315,9 +315,9 @@ EOF
# user_external is what allows Nextcloud to use IMAP for login. The contacts # user_external is what allows Nextcloud to use IMAP for login. The contacts
# and calendar apps are the extensions we really care about here. # and calendar apps are the extensions we really care about here.
#hide_output sudo -u www-data php8.2 $CLOUD_DIR/console.php app:disable firstrunwizard #hide_output sudo -u www-data php8.2 $CLOUD_DIR/console.php app:disable firstrunwizard
#hide_output sudo -u www-data php8.2 $CLOUD_DIR/console.php app:enable user_external sudo -u www-data php8.2 "$CLOUD_DIR/console.php" app:enable user_external
hide_output sudo -u www-data php8.2 $CLOUD_DIR/console.php app:enable contacts sudo -u www-data php8.2 "$CLOUD_DIR/console.php" app:enable contacts
hide_output sudo -u www-data php8.2 $CLOUD_DIR/console.php app:enable calendar sudo -u www-data php8.2 "$CLOUD_DIR/console.php" app:enable calendar
# When upgrading, run the upgrade script again now that apps are enabled. It seems like # When upgrading, run the upgrade script again now that apps are enabled. It seems like
# the first upgrade at the top won't work because apps may be disabled during upgrade? # the first upgrade at the top won't work because apps may be disabled during upgrade?
...@@ -331,10 +331,10 @@ EOF ...@@ -331,10 +331,10 @@ EOF
# Install additional apps # Install additional apps
(sudo -u www-data php8.2 $CLOUD_DIR/occ app:install notes) || true (sudo -u www-data php8.2 $CLOUD_DIR/occ app:install notes) || true
hide_output sudo -u www-data php8.2 $CLOUD_DIR/console.php app:enable notes sudo -u www-data php8.2 $CLOUD_DIR/console.php app:enable notes
(sudo -u www-data php8.2 $CLOUD_DIR/occ app:install twofactor_totp) || true (sudo -u www-data php8.2 $CLOUD_DIR/occ app:install twofactor_totp) || true
hide_output sudo -u www-data php8.2 $CLOUD_DIR/console.php app:enable twofactor_totp sudo -u www-data php8.2 $CLOUD_DIR/console.php app:enable twofactor_totp
# Upgrade all apps # Upgrade all apps
sudo -u www-data php8.2 $CLOUD_DIR/occ app:update --all sudo -u www-data php8.2 $CLOUD_DIR/occ app:update --all
...@@ -431,10 +431,10 @@ EOF ...@@ -431,10 +431,10 @@ EOF
# We also need to change the sending mode from background-job to occ # We also need to change the sending mode from background-job to occ
# Or else the reminders will just be sent as soon as possible when the background jobs run # Or else the reminders will just be sent as soon as possible when the background jobs run
hide_output sudo -u www-data php8.2 -f $CLOUD_DIR/occ config:app:set dav sendEventRemindersMode --value occ sudo -u www-data php8.2 -f $CLOUD_DIR/occ config:app:set dav sendEventRemindersMode --value occ
# Run the maintenance command # Run the maintenance command
hide_output sudo -u www-data php8.2 $CLOUD_DIR/occ maintenance:repair --include-expensive sudo -u www-data php8.2 $CLOUD_DIR/occ maintenance:repair --include-expensive
# Set the config to read-only # Set the config to read-only
sed -i'' "s/'config_is_read_only'\s*=>\s*false/'config_is_read_only' => true/" "$STORAGE_ROOT/owncloud/config.php" sed -i'' "s/'config_is_read_only'\s*=>\s*false/'config_is_read_only' => true/" "$STORAGE_ROOT/owncloud/config.php"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment