mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-20 19:48:11 +01:00
Github bot : script beautyshied
This commit is contained in:
@@ -149,10 +149,10 @@ echo ""
|
||||
|
||||
# Correct mullvad
|
||||
if [ "$(bashio::config "OPENVPN_PROVIDER")" == "mullvad" ]; then
|
||||
bashio::log.info "Mullvad selected, copying script for IPv6 disabling"
|
||||
chown "$PUID:$PGID" /opt/modify-mullvad.sh
|
||||
chmod +x /opt/modify-mullvad.sh
|
||||
sed -i '$i/opt/modify-mullvad.sh' /etc/openvpn/start.sh
|
||||
bashio::log.info "Mullvad selected, copying script for IPv6 disabling"
|
||||
chown "$PUID:$PGID" /opt/modify-mullvad.sh
|
||||
chmod +x /opt/modify-mullvad.sh
|
||||
sed -i '$i/opt/modify-mullvad.sh' /etc/openvpn/start.sh
|
||||
fi
|
||||
|
||||
bashio::log.info "Starting app"
|
||||
|
||||
@@ -11,19 +11,19 @@ sed -i "s|/home/wger/db/database.sqlite|/data/database.sqlite|g" /home/wger/src/
|
||||
#####################
|
||||
mkdir -p /data/static
|
||||
if [ -d /home/wger/static ]; then
|
||||
if [ -n "$(ls -A /home/wger/static 2>/dev/null)" ]; then
|
||||
cp -rnf /home/wger/static/* /data/static/
|
||||
fi
|
||||
rm -r /home/wger/static
|
||||
if [ -n "$(ls -A /home/wger/static 2>/dev/null)" ]; then
|
||||
cp -rnf /home/wger/static/* /data/static/
|
||||
fi
|
||||
rm -r /home/wger/static
|
||||
fi
|
||||
ln -s /data/static /home/wger
|
||||
|
||||
mkdir -p /data/media
|
||||
if [ -d /home/wger/media ]; then
|
||||
if [ -n "$(ls -A /home/wger/media 2>/dev/null)" ]; then
|
||||
cp -rnf /home/wger/media/* /data/media/
|
||||
fi
|
||||
rm -r /home/wger/media
|
||||
if [ -n "$(ls -A /home/wger/media 2>/dev/null)" ]; then
|
||||
cp -rnf /home/wger/media/* /data/media/
|
||||
fi
|
||||
rm -r /home/wger/media
|
||||
fi
|
||||
ln -s /data/media /home/wger
|
||||
|
||||
|
||||
Reference in New Issue
Block a user