updated boot script to fix permission

This commit is contained in:
vabene1111 2020-03-25 22:30:44 +01:00
parent 574d088cdd
commit 913d858473

13
boot.sh
View File

@ -1,4 +1,17 @@
#!/bin/sh
# Change ownership if needed
if [ ! -n "$(find staticfiles -user "$(id -u)" -print -prune -o -prune)" ]
then
echo "Changing ownership of staticfiles"
chown -R recipes:recipes staticfiles
fi
if [ ! -n "$(find mediafiles -user "$(id -u)" -print -prune -o -prune)" ]
then
echo "Changing ownership of mediafiles"
chown -R recipes:recipes mediafiles
fi
source venv/bin/activate
echo "Updating database"