Do a repair on nextcloud upgrades
This commit is contained in:
parent
1e282e9963
commit
177acbf2a2
|
@ -180,6 +180,7 @@ function upgrade_nextcloud {
|
|||
chown -R www-data:www-data /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs/config
|
||||
chown -R www-data:www-data /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs/data
|
||||
cd /var/www/$NEXTCLOUD_DOMAIN_NAME/htdocs
|
||||
sudo -u www-data ./occ maintenance:repair
|
||||
sudo -u www-data ./occ files:cleanup
|
||||
sudo -u www-data ./occ files:scan --all
|
||||
}
|
||||
|
@ -226,6 +227,7 @@ function restore_local_nextcloud {
|
|||
fi
|
||||
|
||||
cd $nextcloud_dir
|
||||
sudo -u www-data ./occ maintenance:repair
|
||||
sudo -u www-data ./occ files:cleanup
|
||||
sudo -u www-data ./occ files:scan --all
|
||||
fi
|
||||
|
@ -271,6 +273,7 @@ function restore_remote_nextcloud {
|
|||
fi
|
||||
|
||||
cd $nextcloud_dir
|
||||
sudo -u www-data ./occ maintenance:repair
|
||||
sudo -u www-data ./occ files:cleanup
|
||||
sudo -u www-data ./occ files:scan --all
|
||||
fi
|
||||
|
@ -566,6 +569,7 @@ function install_nextcloud_main {
|
|||
chmod 0750 data
|
||||
sudo -u www-data ./occ files:cleanup
|
||||
sudo -u www-data ./occ files:scan --all
|
||||
sudo -u www-data ./occ maintenance:repair
|
||||
|
||||
set_completion_param "nextcloud domain" "$NEXTCLOUD_DOMAIN_NAME"
|
||||
|
||||
|
|
Loading…
Reference in New Issue