Commit c0deee4e authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

public assets directory permissions now handled properly

parent 11f0b6c4
......@@ -50,6 +50,7 @@ function abort {
WEBSCHLOCKER_CONFIG_DIR="/opt/schleuder-web/config"
WEBSCHLOCKER_LOG_DIR="/opt/schleuder-web/log"
WEBSCHLOCKER_TMP_DIR="/opt/schleuder-web/tmp"
WEBSCHLOCKER_PUBLIC_DIR="/opt/schleuder-web/public"
#
# inform
......@@ -234,6 +235,12 @@ echo "+-- creating and setting permissions on the tmp directory '$WEBSCHLOCKER_T
mkdir -p "$WEBSCHLOCKER_TMP_DIR"
chown -R "$WEBSCHLOCKER_USER:$WEBSCHLOCKER_GROUP" "$WEBSCHLOCKER_TMP_DIR"
#
# public assets directory
echo "+-- creating and setting permissions on the public assets directory '$WEBSCHLOCKER_PUBLIC_DIR'"
mkdir -p "$WEBSCHLOCKER_PUBLIC_DIR"
chown -R "$WEBSCHLOCKER_USER:$WEBSCHLOCKER_GROUP" "$WEBSCHLOCKER_PUBLIC_DIR"
# which version of the db we have?
echo "+-- checking db schema version..."
WEBSCHLEUDER_SCHEMA_VERSION="$( su -p -c "env PATH=\"$PATH\" bundle exec rake db:version RAILS_ENV=production" "$WEBSCHLOCKER_USER" | awk '/^Current version:/ {print $3}' )"
......
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