Created
August 16, 2017 01:28
-
-
Save azhai/3e2e112c0222e4ac285394c8893e6f04 to your computer and use it in GitHub Desktop.
启动gogs服务
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# start gogs web | |
IFS='- | |
>---' | |
PATH=/bin:/usr/bin:/usr/local/bin:/opt/bin | |
HOME=${HOME:?"need \$HOME variable"} | |
USER=$(whoami) | |
export USER HOME PATH | |
PWD=`cd $(dirname "${BASH_SOURCE[0]}") && pwd` | |
nohup $PWD/gogs web > /dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment