Browse Source

do some modify for supervisor run error

maybe you will find it, so i find it too, so i fix it. but not the best
solution way, and i am waiting the author will modify the start
scripts, and modify the gogs import conf way. i will update it when
next big version.
pull/990/head
renpan 10 years ago
parent
commit
d03fd90247
  1. 2
      scripts/gogs_supervisord.sh
  2. 9
      scripts/start_for_supervisord.sh

2
scripts/gogs_supervisord.sh

@ -7,7 +7,7 @@ EXEPATH='/usr/bin/gogs_start'
if [ ! -f $EXEPATH ]; then if [ ! -f $EXEPATH ]; then
gogs_scripts_path=$(cd `dirname $0`; pwd) gogs_scripts_path=$(cd `dirname $0`; pwd)
echo $gogs_scripts_path echo $gogs_scripts_path
sudo ln -s $gogs_scripts_path'/start.sh' /usr/bin/gogs_start sudo ln -s $gogs_scripts_path'/start_for_supervisord.sh' /usr/bin/gogs_start
fi fi
LOGDIR="log" LOGDIR="log"

9
scripts/start_for_supervisord.sh

@ -0,0 +1,9 @@
#!/bin/sh
IFS='
'
PATH=/bin:/usr/bin:/usr/local/bin
USER=$(whoami)
HOME=$(grep "^$USER:" /etc/passwd | cut -d: -f6)
export USER HOME PATH
cd "$HOME/gogs" && exec ./gogs web
Loading…
Cancel
Save