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:
authornachoparker <nacho@ownyourbits.com>2020-11-25 06:03:10 +0300
committernachoparker <nacho@ownyourbits.com>2020-11-28 00:54:46 +0300
commit7afdc0fe8dffd71785782c8c6ac4edf8f3ada42a (patch)
tree93466a0b116291161dcbb09d7d1d6c4236737c41 /bin
parenta335b5e2bf8a7f3693874132a6552df822f12aa5 (diff)
upgrade to NC20.0.2v1.32.0
Signed-off-by: nachoparker <nacho@ownyourbits.com>
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
####################