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:
authornachoparker <nacho@ownyourbits.com>2019-11-30 18:42:40 +0300
committernachoparker <nacho@ownyourbits.com>2019-12-08 20:01:43 +0300
commit72d2d00f747e3297f8d0525550a9d5290f41414d (patch)
tree46b15ddd66ae005bf53c7995bb29cb86af4dfe71 /updates
parent9fb8468e9719536b79d35ad75e98e4c4195bad7e (diff)
upgrade to NC17.0.1v1.19.0
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'updates')
-rw-r--r--updates/1.19.0.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/updates/1.19.0.sh b/updates/1.19.0.sh
index e7b88a39..731c147c 100644
--- a/updates/1.19.0.sh
+++ b/updates/1.19.0.sh
@@ -18,6 +18,16 @@ source /usr/local/etc/library.sh # sets NCVER PHPVER RELEASE
}
}
+# if using NCP original logo, replace with the new version
+datadir=$(ncc config:system:get datadirectory)
+id=$(grep instanceid /var/www/nextcloud/config/config.php | awk -F "=> " '{ print $2 }' | sed "s|[,']||g")
+sum_orig=ca39ff587bd899cb92eb0f5a6d429824
+sum_curr=$(md5sum "${datadir}"/appdata_*/theming/images/logo | awk '{ print $1 }')
+[[ "${sum_orig}" == "${sum_curr}" ]] && {
+ cp etc/logo "${datadir}/appdata_${id}/theming/images/logo"
+ cp etc/logo "${datadir}/appdata_${id}/theming/images/logoheader"
+}
+
# docker images only
[[ -f /.docker-image ]] && {
: