File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ** latest**
4
+ - shutdown the container gracefully
5
+
3
6
** 7.2.2**
4
7
- upgrade to gitlab-ce 7.2.2
5
8
- added GITLAB_HTTPS_HSTS_ENABLED configuration option (advanced config)
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ trap appStop SIGINT SIGTERM
5
+
4
6
GITLAB_INSTALL_DIR=" /home/git/gitlab"
5
7
GITLAB_DATA_DIR=" /home/git/data"
6
8
GITLAB_BACKUP_DIR=" ${GITLAB_BACKUP_DIR:- $GITLAB_DATA_DIR / backups} "
586
588
tail -F /var/log/nginx/gitlab_access.log
587
589
}
588
590
591
+ appStop () {
592
+ echo " "
593
+ /etc/init.d/gitlab stop
594
+ echo " Stopping crond..."
595
+ supervisorctl stop cron > /dev/null
596
+ echo " Stopping sshd..."
597
+ supervisorctl stop sshd > /dev/null
598
+ echo " Stopping nginx..."
599
+ supervisorctl stop nginx > /dev/null
600
+ echo " Stopping mysqld..."
601
+ supervisorctl stop mysqld > /dev/null
602
+ echo " Stopping redis-server..."
603
+ supervisorctl stop redis-server > /dev/null
604
+ echo " Stopping supervisord..."
605
+ kill -15 $( cat /var/run/supervisord.pid)
606
+ exit
607
+ }
608
+
589
609
appSanitize () {
590
610
echo " Checking repository directories permissions..."
591
611
chmod -R ug+rwX,o-rwx ${GITLAB_DATA_DIR} /repositories/
You can’t perform that action at this time.
0 commit comments