13 lines
450 B
Bash
Executable File
13 lines
450 B
Bash
Executable File
#!/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
|