diff options
author | Emrah URHAN <raxetul@gmail.com> | 2015-11-22 19:40:18 +0200 |
---|---|---|
committer | Emrah URHAN <raxetul@gmail.com> | 2015-11-22 19:40:18 +0200 |
commit | 737da1a3748d7c82af771d3ba4aa4c76ba219eee (patch) | |
tree | b59104944ba28771752adcc1231a847b6704ac4d /scripts/init/centos/gogs | |
parent | f63a468dfce812423b78a47cfa2583c5ad2faa49 (diff) | |
parent | efaf60ba5a4a7c0954dbaf57203859db3258281f (diff) |
Latest develop updates is merged with my RaspberryPi Dockerfile version.
Merge branch 'develop' of https://github.com/gogits/gogs into develop
Diffstat (limited to 'scripts/init/centos/gogs')
-rw-r--r-- | scripts/init/centos/gogs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/init/centos/gogs b/scripts/init/centos/gogs index 5ff6de53..cacf5742 100644 --- a/scripts/init/centos/gogs +++ b/scripts/init/centos/gogs @@ -29,7 +29,8 @@ GOGS_PATH=${GOGS_HOME}/$NAME GOGS_USER=git SERVICENAME="Gogs Go Git Service" LOCKFILE=/var/lock/subsys/gogs -LOGFILE=${GOGS_HOME}/log/gogs.log +LOGPATH=${GOGS_HOME}/log +LOGFILE=${LOGPATH}/gogs.log RETVAL=0 # Read configuration from /etc/sysconfig/gogs to override defaults @@ -37,6 +38,8 @@ RETVAL=0 # Don't do anything if nothing is installed [ -x ${GOGS_PATH} ] || exit 0 +# exit if logpath dir is not created. +[ -x ${LOGPATH} ] || exit 0 DAEMON_OPTS="--check $NAME" |