Преглед изворни кода

fix typo in centos init script

We should be *sourcing* `/etc/sysconfig/gogs`, not *executing* it, don't we?
Robert Rauch пре 10 година
родитељ
комит
7e5063a93d
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      scripts/init/centos/gogs

+ 1 - 1
scripts/init/centos/gogs

@@ -33,7 +33,7 @@ LOGFILE=${GOGS_HOME}/log/gogs.log
 RETVAL=0
 
 # Read configuration from /etc/sysconfig/gogs to override defaults
-[ -r /etc/sysconfig/$NAME ] && ./etc/sysconfig/$NAME
+[ -r /etc/sysconfig/$NAME ] && . /etc/sysconfig/$NAME
 
 # Don't do anything if nothing is installed
 [ -x ${GOGS_PATH} ] || exit 0