Github bot : script beautyshied

This commit is contained in:
github-actions
2022-12-04 00:12:37 +00:00
parent 9915c4edb5
commit 684f4132b3
2 changed files with 12 additions and 12 deletions

View File

@@ -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