set product name (#2119)

This commit is contained in:
Daniel Hansson 2021-11-06 10:49:01 +01:00 committed by GitHub
parent b88b966e71
commit f52cd2bd8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,6 +68,21 @@ then
fi
fi
# Set product name
if home_sme_server
then
PRODUCTNAME="Nextcloud HanssonIT Server"
else
PRODUCTNAME="Nextcloud HanssonIT VM"
fi
if is_app_installed theming
then
if [ "$(nextcloud_occ config:app:get theming productName)" != "$PRODUCTNAME" ]
then
nextcloud_occ config:app:set theming productName --value "$PRODUCTNAME"
fi
fi
# Inform about started update
notify_admin_gui \
"Update script started!" \