mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
cleanup update.sh
This commit is contained in:
parent
011d55552b
commit
50435d678a
@ -168,10 +168,6 @@ chmod 770 /var/www/ncp-web
|
||||
sed -i "s|.* [* * * *]|*/5 * * * *|" spdnsupdater
|
||||
}
|
||||
|
||||
# update nc-restore
|
||||
install_app nc-backup
|
||||
install_app nc-restore
|
||||
|
||||
# update to NC14.0.4
|
||||
is_active_app nc-autoupdate-nc && run_app nc-autoupdate-nc
|
||||
|
||||
@ -180,9 +176,6 @@ chmod 770 /var/www/ncp-web
|
||||
[[ "$( ls -l /etc/php/7.2/fpm/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/fpm/conf.d/*-opcache.ini | tail -1 )"
|
||||
[[ "$( ls -l /etc/php/7.2/cli/conf.d/*-opcache.ini | wc -l )" -gt 1 ]] && rm "$( ls /etc/php/7.2/cli/conf.d/*-opcache.ini | tail -1 )"
|
||||
|
||||
# in NC14.0.4 the referrer policy is included in .htaccess
|
||||
grep -q Referrer-Policy /var/www/nextcloud/.htaccess && sed -i /Referrer-Policy/d /etc/apache2/apache2.conf
|
||||
|
||||
} # end - only live updates
|
||||
|
||||
exit 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user