Commit 4d3b25746b85574065f1001fe3a0d6387a542571
1 parent
b7784140
Exists in
master
Use SysV gitlab init script instead of systemctl
systemctl exits immediately, while the SysV script waits for gitlab to stop.
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
provision.sh
... | ... | @@ -143,8 +143,8 @@ fi |
143 | 143 | if [[ -e $backup ]]; then |
144 | 144 | printf "####################################################" |
145 | 145 | printf "Restaurando backup" |
146 | - systemctl stop gitlab | |
147 | - sleep 3 | |
146 | + /etc/init.d/gitlab stop | |
147 | + | |
148 | 148 | printf "Movendo backup para diretório correto" |
149 | 149 | install -D -m 755 -o git -g git $backup /var/lib/gitlab/backups |
150 | 150 | cd /usr/lib/gitlab | ... | ... |