Rename and update init files to use "gitea" instead of "gogs"

Closes #102
This commit is contained in:
Sandro Santilli 2016-11-07 12:54:17 +01:00
parent b7263f31a5
commit 145ab5c89a
10 changed files with 100 additions and 100 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
#
# /etc/rc.d/init.d/gogs
# /etc/rc.d/init.d/gitea
#
# Runs the Gogs Go Git Service.
#
@ -9,13 +9,13 @@
#
### BEGIN INIT INFO
# Provides: gogs
# Provides: gitea
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start gogs at boot time.
# Description: Control gogs.
# Short-Description: Start gitea at boot time.
# Description: Control gitea.
### END INIT INFO
# Source function library.
@ -23,17 +23,17 @@
# Default values
NAME=gogs
GITEA_HOME=/home/git/gogs
NAME=gitea
GITEA_HOME=/home/git/gitea
GITEA_PATH=${GITEA_HOME}/$NAME
GITEA_USER=git
SERVICENAME="Gogs Go Git Service"
LOCKFILE=/var/lock/subsys/gogs
LOCKFILE=/var/lock/subsys/gitea
LOGPATH=${GITEA_HOME}/log
LOGFILE=${LOGPATH}/gogs.log
LOGFILE=${LOGPATH}/gitea.log
RETVAL=0
# Read configuration from /etc/sysconfig/gogs to override defaults
# Read configuration from /etc/sysconfig/gitea to override defaults
[ -r /etc/sysconfig/$NAME ] && . /etc/sysconfig/$NAME
# Don't do anything if nothing is installed