This commit is contained in:
Bob Mottram 2016-08-15 13:50:32 +01:00
parent 16ba339e48
commit 9107240519
1 changed files with 7 additions and 0 deletions

View File

@ -387,6 +387,13 @@ function mesh_install_ipfs_go {
cat <<EOF > ${rootdir}/root/install_ipfs_go.sh cat <<EOF > ${rootdir}/root/install_ipfs_go.sh
#!/bin/bash #!/bin/bash
export GOPATH=$GOPATH
if [ ${#GOPATH} -lt 1 ]; then
echo $'GOPATH was not set'
exit 62925
fi
if [ ! -d /home/git ]; then if [ ! -d /home/git ]; then
adduser --disabled-login --gecos 'Gogs' git adduser --disabled-login --gecos 'Gogs' git