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
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ncp-update-nc15
1 files changed, 5 insertions, 10 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc
index 013e9187..25ed025d 100755
--- a/bin/ncp-update-nc
+++ b/bin/ncp-update-nc
@@ -132,16 +132,10 @@ cp nextcloud-old/config/config.php nextcloud/config/
####################
cp -raT nextcloud-old/themes/ nextcloud/themes/
-# copy apps
-####################
-echo "Restore apps..."
-for app in $( ls nextcloud-old/apps/*/ -d ); do
- app=$( basename "$app" )
- [[ ! -d nextcloud/apps/$app ]] && {
- echo " * $app"
- cp -r nextcloud-old/apps/$app nextcloud/apps
- }
-done
+# copy old NCP apps
+####################
+cp -r nextcloud-old/apps/{nextcloudpi,previewgenerator} /var/www/nextcloud/apps/
+
#false # test point
# copy data if it was at the default location
@@ -183,6 +177,7 @@ ncc='sudo -u www-data php nextcloud/occ'
$ncc upgrade # && false # test point
$ncc db:add-missing-indices
$ncc | grep -q db:add-missing-columns && $ncc db:add-missing-columns
+$ncc | grep -q db:add-missing-primary-keys && $ncc db:add-missing-primary-keys
# done
####################