init, its already perfect ;)
This commit is contained in:
commit
8cca8c27e0
12
update.sh
Executable file
12
update.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user