mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-09 14:42:01 -03:30
1.51.1.sh: Fix retrieval of theming app instance ID
Signed-off-by: Tobias Knöppler <6317548+theCalcaholic@users.noreply.github.com>
This commit is contained in:
parent
39549d2e6e
commit
fd60a22b17
@ -2,8 +2,8 @@
|
||||
|
||||
# Fix NCP theme
|
||||
[[ -e /usr/local/etc/logo ]] && {
|
||||
ID=$( grep instanceid config/config.php | awk -F "=> " '{ print $2 }' | sed "s|[,']||g" )
|
||||
[[ "$ID" == "" ]] && { echo "failed to get ID"; return 1; }
|
||||
ID=$( grep instanceid /var/www/nextcloud/config/config.php | awk -F "=> " '{ print $2 }' | sed "s|[,']||g" )
|
||||
[[ "$ID" == "" ]] && { echo "failed to get ID"; exit 1; }
|
||||
theming_base_path="data/appdata_${ID}/theming/global/images"
|
||||
mkdir -p "${theming_base_path}"
|
||||
[ -f "${theming_base_path}/background" ] || cp /usr/local/etc/background "${theming_base_path}/background"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user