diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-12-09 03:37:11 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-12-09 03:47:35 +0300 |
commit | 0bb61d7bf23279815a073db256478203cf902be3 (patch) | |
tree | 533e79621df594137699ab07807fbece86ac00c7 /updates | |
parent | f9deb25aa0a0712f97c290896dbfe737eeaa9a2f (diff) |
update: fix missing theme
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'updates')
-rw-r--r-- | updates/1.20.0.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/updates/1.20.0.sh b/updates/1.20.0.sh index debc3732..5324364d 100644 --- a/updates/1.20.0.sh +++ b/updates/1.20.0.sh @@ -24,11 +24,14 @@ is_active_app nc-scan-auto && run_app nc-scan-auto # 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" +logo_dir="${datadir}/appdata_${id}/theming/images" +[[ -f "${logo_dir}"/logo ]] && { + sum_orig=ca39ff587bd899cb92eb0f5a6d429824 + sum_curr=$(md5sum "${logo_dir}"/logo | awk '{ print $1 }') + [[ "${sum_orig}" == "${sum_curr}" ]] && { + cp etc/logo "${logo_dir}"/logo + cp etc/logo "${logo_dir}"/logoheader + } } # docker images only |