Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index 5d7b6343..221f514a 100755
--- a/update.sh
+++ b/update.sh
@@ -167,6 +167,10 @@ cp -r ncp-web /var/www/
chown -R www-data:www-data /var/www/ncp-web
chmod 770 /var/www/ncp-web
+# install NC app
+rm -rf /var/www/ncp-app
+cp -r ncp-app /var/www/
+
[[ -f /.docker-image ]] && {
# remove unwanted ncp-apps for the docker version
for opt in $EXCL_DOCKER; do
@@ -203,6 +207,13 @@ chmod 770 /var/www/ncp-web
# update to NC15
is_active_app nc-autoupdate-nc && run_app nc-autoupdate-nc
+ # install NC app
+ [[ -d /var/www/nextcloud/apps/nextcloudpi ]] || {
+ cp -r /var/www/ncp-app /var/www/nextcloud/apps/nextcloudpi
+ chown -R www-data: /var/www/nextcloud/apps/nextcloudpi
+ ncc app:enable nextcloudpi
+ }
+
# remove redundant opcache configuration. Leave until update bug is fixed -> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=815968
# Bug #416 reappeared after we moved to php7.2 and debian buster packages. (keep last)
[[ "$( 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 )"