This commit is contained in:
Alexandre
2023-07-24 17:12:27 +02:00
parent 38a62026df
commit 300340fd10
3 changed files with 5 additions and 4 deletions

View File

@@ -126,6 +126,6 @@
"slug": "webtop-kde",
"udev": true,
"url": "https://github.com/alexbelgium/hassio-addons",
"version": "5.24.5-test5",
"version": "5.24.5-test6",
"video": true
}

View File

@@ -33,8 +33,8 @@ fi
# Set data location
bashio::log.info "Setting data location to $LOCATION"
sed -i "1a export HOME=$LOCATION" $(find /etc/s6-overlay/s6-rc.d -name run -type f) || true
sed -i "1a export FM_HOME=$LOCATION$(find /etc/s6-overlay/s6-rc.d -name run -type f) || true
sed -i "1a export HOME=$LOCATION" $(find /etc/s6-overlay/s6-rc.d -name "run" -type f) || true
sed -i "1a export FM_HOME=$LOCATION$(find /etc/s6-overlay/s6-rc.d -name "run" -type f) || true
sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /defaults -type f) || true
sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /etc/cont-init.d -type f) || true
sed -i "s|/share/webtop_kde|$LOCATION|g" $(find /etc/services.d -type f) || true

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
# shellcheck disable=SC2046
#################
# NGINX SETTING #
@@ -10,4 +11,4 @@ sed -i "s/%%port%%/${ingress_port}/g" /etc/nginx/sites-available/ingress.conf
sed -i "s/%%interface%%/${ingress_interface}/g" /etc/nginx/sites-available/ingress.conf
# Implement SUBFOLDER value
sed -i "1a SUBFOLDER=$(bashio::addon.ingress_url)" $(find /etc/s6-overlay/s6-rc.d -name run -type f)
sed -i "1a SUBFOLDER=$(bashio::addon.ingress_url)" $(find /etc/s6-overlay/s6-rc.d -name "run" -type f)