From 6fd695cc8383682064402e4cf13d7b08c52fd194 Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Wed, 7 May 2025 23:58:28 +0200 Subject: [PATCH] This is a stable version for installing Nextcloud Hub 10 on a homelab with no domain name. --- setupnc.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/setupnc.sh b/setupnc.sh index 7c1acc6..0839708 100644 --- a/setupnc.sh +++ b/setupnc.sh @@ -152,6 +152,8 @@ sudo -u www-data php occ config:system:set redis port --type=integer --value=637 sudo -u www-data php occ config:system:set redis timeout --type=float --value=0.0 echo "Configuring crontab..." ( crontab -u www-data -l 2>/dev/null; echo '*/5 * * * * php -f /var/www/html/cron.php' ) | crontab -u www-data - +echo "Unabling cron for background jobs..." +sudo -u www-data php occ background:cron echo "Running a full install check and repair..." sudo -u www-data php occ maintenance:repair --include-expensive @@ -178,9 +180,6 @@ echo "on the terminal." echo echo "Your user files are in the folder /home/nextcloudfiles" echo -echo "A cronjob has been configured so you can switch from AJAX to Cron" -echo "which will improve page load times." -echo echo "To log on to your server point your browser to http://ipaddress" echo " Admin Username : $adminuser" echo " Admin Password : $adminpass"