Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
birger
users
Commits
a83e42be
Commit
a83e42be
authored
Jul 20, 2021
by
o@immerda.ch
Browse files
selinux ftw
parent
099805ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/update_prod.sh
View file @
a83e42be
...
...
@@ -15,4 +15,6 @@ user=$(stat -c%U $base_path)
su -
$user
-s
/bin/bash
-c
"cd
$base_path
&& git pull -q"
su -
$user
-s
/bin/bash
-c
"cd
$base_path
&& SECRET_KEY_BASE=
$skb
scl enable rh-ruby25 --
$base_path
/scripts/prepare_for_prod.sh"
restorecon
-R
-v
/var/www/vhosts/users.immerda.ch/www/vendor/bundle/ruby/
*
/gems/nokogiri-
*
-x86_64-linux
/lib/nokogiri/
*
/nokogiri.so
[
"
${
1
}
"
==
'without-restart'
]
||
su -
$user
-s
/bin/bash
-c
"touch
${
base_path
}
/tmp/restart.txt"
Write
Preview
Supports
Markdown
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