mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +01:00
fix: auto-fix linting issues
This commit is contained in:
committed by
github-actions[bot]
parent
3539f328fb
commit
f5428e0950
@@ -10,19 +10,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
|
||||
|
||||
@@ -30,9 +30,9 @@ ln -s /data/media /home/wger
|
||||
# Align permissions #
|
||||
#####################
|
||||
(
|
||||
set -o posix
|
||||
export -p
|
||||
) >/data/env.sh
|
||||
set -o posix
|
||||
export -p
|
||||
) > /data/env.sh
|
||||
chown -R 1000:1000 /data
|
||||
chown -R 1000:1000 /home/wger
|
||||
chmod -R 777 /data
|
||||
|
||||
Reference in New Issue
Block a user