Commit 42ee94b6 authored by chris's avatar chris

debian: set www-data group ownership

parent 4c32d6fd
......@@ -4,7 +4,7 @@ set -e
NAME="flyers"
USER=$NAME
GROUP=$NAME
GROUP=www-data
CONFIG_DIR="/etc/$NAME"
MANAGE_SCRIPT="/usr/bin/$NAME-manage"
......@@ -20,7 +20,8 @@ case "$1" in
# ensure dirs ownership
chown $USER:$GROUP /var/log/$NAME
chown $USER:$GROUP /var/lib/$NAME/static
chown $USER:$GROUP /var/lib/$NAME/media
chown -R $USER:$GROUP /var/lib/$NAME/media
find /var/lib/$NAME/media -type d -exec chmod g+s {} \;
# create a secret file
SECRET_FILE=$CONFIG_DIR/secret
if [ ! -f $SECRET_FILE ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment