]> source.dussan.org Git - gitea.git/commitdiff
add tip to modify the command path, add check the log folder, if not then create it.
authorjack <ac861219@gmail.com>
Mon, 12 May 2014 13:50:04 +0000 (21:50 +0800)
committerjack <ac861219@gmail.com>
Mon, 12 May 2014 13:50:04 +0000 (21:50 +0800)
gogs_supervisord.sh [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 2c7c653..4390809
@@ -1,8 +1,15 @@
 #!/bin/sh
 
+echo 'plase remember to modify the command path in etc/conf/supervisord.conf(line 23)'
+
 PID="/tmp/supervisord.pid"
 CONF="conf/etc/supervisord.conf"
 
+LOGDIR="log"  
+if [ ! -d $LOGDIR ]; then  
+    mkdir $LOGDIR
+fi
+
 stop() {
     if [ -f $PID ]; then
         kill `cat -- $PID`