mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
www/gitlab: enable GitLab to start on boot
PR: 208793 Submitted by: László Károlyi <laszlo@karolyi.hu>, Horst Kapfenberger <horst.kapfenberger@agoracon.at>
This commit is contained in:
parent
ea0efaa5df
commit
ac2e2aaee8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=437349
@ -4,6 +4,7 @@
|
||||
PORTNAME= gitlab
|
||||
PORTVERSION= 8.16.8
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www devel
|
||||
|
||||
MAINTAINER= tz@FreeBSD.org
|
||||
|
@ -67,7 +67,7 @@ test -f /etc/default/gitlab && . /etc/default/gitlab
|
||||
|
||||
# Switch to the app_user if it is not he/she who is running the script.
|
||||
if [ "$USER" != "$app_user" ]; then
|
||||
eval su - "$app_user" -c $(echo \")$0 "$@"$(echo \"); exit;
|
||||
eval su - "$app_user" -c $(echo \")/usr/local/etc/rc.d/gitlab "$@"$(echo \"); exit;
|
||||
fi
|
||||
|
||||
# Switch to the gitlab path, exit on failure.
|
||||
@ -390,10 +390,10 @@ restart_gitlab(){
|
||||
### Finally the input handling.
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start|quietstart)
|
||||
start_gitlab
|
||||
;;
|
||||
stop)
|
||||
stop|faststop)
|
||||
stop_gitlab
|
||||
;;
|
||||
restart)
|
||||
@ -407,7 +407,7 @@ case "$1" in
|
||||
exit $gitlab_status
|
||||
;;
|
||||
*)
|
||||
echo "Usage: service gitlab {start|stop|restart|reload|status}"
|
||||
echo "Usage: service gitlab {start|quietstart|faststop|stop|restart|reload|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user