Skip to content

Commit

Permalink
Handle nextcloud installations on STORAGE_ROOT paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
kiekerjan committed Jun 3, 2024
1 parent 6448a47 commit 7c92c4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ InstallNextcloud() {
# Make sure permissions are correct or the upgrade step won't run.
# $STORAGE_ROOT/owncloud may not yet exist, so use -f to suppress
# that error.
chown -f -R www-data:www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud || /bin/true
chown -f -R www-data:www-data "$STORAGE_ROOT/owncloud" /usr/local/lib/owncloud || /bin/true

# If this isn't a new installation, immediately run the upgrade script.
# Then check for success (0=ok and 3=no upgrade needed, both are success).
Expand Down Expand Up @@ -371,7 +371,7 @@ EOF
EOF

# Set permissions
chown -R www-data:www-data $STORAGE_ROOT/owncloud /usr/local/lib/owncloud
chown -R www-data:www-data "$STORAGE_ROOT/owncloud" /usr/local/lib/owncloud

# Execute Nextcloud's setup step, which creates the Nextcloud sqlite database.
# It also wipes it if it exists. And it updates config.php with database
Expand Down Expand Up @@ -426,7 +426,7 @@ echo ";";
?>
EOF

chown www-data:www-data $STORAGE_ROOT/owncloud/config.php
chown www-data:www-data "$STORAGE_ROOT/owncloud/config.php"

# Enable/disable apps. Note that this must be done after the Nextcloud setup.
# The firstrunwizard gave Josh all sorts of problems, so disabling that.
Expand Down

0 comments on commit 7c92c4d

Please sign in to comment.