diff --git a/src/freedombone b/src/freedombone index 7f40cd73..ca7b73f0 100755 --- a/src/freedombone +++ b/src/freedombone @@ -6716,12 +6716,12 @@ quit" > $INSTALL_DIR/batch.sql cp $GOPATH/src/github.com/gogits/gogs/scripts/init/debian/gogs /etc/init.d/ sed -i 's/# Required-Start: $syslog $network/# Required-Start: $syslog $network $local_fs nginx/g' /etc/init.d/gogs sed -i 's/# Required-Stop: $syslog/# Required-Stop: $syslog $local_fs/g' /etc/init.d/gogs - sed -i 's|WORKINGDIR=*|WORKINGDIR=/home/git/go/src/github.com/gogits/gogs|g' /etc/init.d/gogs + sed -i 's|WORKINGDIR=.*|WORKINGDIR=/home/git/go/src/github.com/gogits/gogs|g' /etc/init.d/gogs chown git:git /etc/init.d/gogs chown -R git:git /home/git - chmod +x /etc/init.d/gogs - update-rc.d gogs defaults + chmod ug+x /etc/init.d/gogs + update-rc.d gogs defaults 30 70 service gogs start systemctl daemon-reload