updated boot script to fix permission
This commit is contained in:
parent
574d088cdd
commit
913d858473
13
boot.sh
13
boot.sh
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user