diff --git a/setup/nextcloud.sh b/setup/nextcloud.sh index 17f40970..b134449c 100755 --- a/setup/nextcloud.sh +++ b/setup/nextcloud.sh @@ -284,7 +284,7 @@ EOF # 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 # settings and deletes the autoconfig.php file. - (cd /usr/local/lib/owncloud; sudo -u www-data php"$PHP_VER" /usr/local/lib/owncloud/index.php;) + (cd /usr/local/lib/owncloud || exit; sudo -u www-data php"$PHP_VER" /usr/local/lib/owncloud/index.php;) fi # Update config.php.