Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
libre
webschlocker3
Commits
c0deee4e
Commit
c0deee4e
authored
Apr 13, 2018
by
Michał 'rysiek' Woźniak
Browse files
public assets directory permissions now handled properly
parent
11f0b6c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
entrypoint.sh
entrypoint.sh
+7
-0
No files found.
entrypoint.sh
View file @
c0deee4e
...
...
@@ -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}'
)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment