init, its already perfect ;)

This commit is contained in:
Mihit 2025-03-03 08:48:45 +00:00
commit 8cca8c27e0

12
update.sh Executable file
View File

@ -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