This commit is contained in:
Bob Mottram 2015-03-29 11:36:59 +01:00
parent f853b56d53
commit e2a0a8131c
1 changed files with 1 additions and 0 deletions

View File

@ -6937,6 +6937,7 @@ quit" > $INSTALL_DIR/batch.sql
sed -i 's|#After=mysqld.service|After=mysqld.service|g' /etc/systemd/system/gogs.service
sed -i "s|WorkingDirectory=.*|WorkingDirectory=$GOPATH/src/github.com/gogits/gogs|g" /etc/systemd/system/gogs.service
sed -i "s|ExecStart=.*|ExecStart=$GOPATH/src/github.com/gogits/gogs/gogs web|g" /etc/systemd/system/gogs.service
sed -i "s|Environment.*|Environment=\"USER=git\",\"HOME=/home/git\",\"GOPATH=/home/git/go\"|g" /etc/systemd/system/gogs.service
systemctl enable gogs
systemctl daemon-reload
systemctl restart gogs