commit 8cca8c27e0f935cc5bca0a8c4e915604bf110e75 Author: Mihit Date: Mon Mar 3 08:48:45 2025 +0000 init, its already perfect ;) diff --git a/update.sh b/update.sh new file mode 100755 index 0000000..3402653 --- /dev/null +++ b/update.sh @@ -0,0 +1,12 @@ +#!/bin/bash +rm -r nextcloud.old +sudo -u www-data php nextcloud/occ maintenance:mode --on +mv nextcloud nextcloud.old +wget https://download.nextcloud.com/server/releases/latest.tar.bz2 +tar xf latest.tar.bz2 +rm latest.tar.bz2 +mv nextcloud.old/config/config.php nextcloud/config +mv nextcloud.old/data nextcloud +sudo chown www-data:www-data -R nextcloud +sudo -u www-data php nextcloud/occ upgrade +sudo -u www-data php nextcloud/occ maintenance:mode --off