Browse Source

init script call gogs with wrong params

we should run gogs like
```
gogs run web
```

instead of
```
gogs web
```

Otherwise we would get error like below in log file.
```
[rh@CloudY gogs]# gogs web
Usage:
  gogs run COMMAND [options]
  gogs scale TYPE=NUM
  gogs logs [--tail|-n NUMBER]
  gogs config:get VAR
  gogs config:set VAR=VALUE
  gogs configure
  gogs reconfigure
```
pull/3008/head
Raywill 9 years ago
parent
commit
fbc232c809
  1. 2
      scripts/init/centos/gogs

2
scripts/init/centos/gogs

@ -49,7 +49,7 @@ DAEMON_OPTS="--check $NAME"
start() { start() {
cd ${GOGS_HOME} cd ${GOGS_HOME}
echo -n "Starting ${SERVICENAME}: " echo -n "Starting ${SERVICENAME}: "
daemon $DAEMON_OPTS "${GOGS_PATH} web > ${LOGFILE} 2>&1 &" daemon $DAEMON_OPTS "${GOGS_PATH} run web > ${LOGFILE} 2>&1 &"
RETVAL=$? RETVAL=$?
echo echo
[ $RETVAL = 0 ] && touch ${LOCKFILE} [ $RETVAL = 0 ] && touch ${LOCKFILE}

Loading…
Cancel
Save