Bob Mottram 8 年前
父节点
当前提交
9107240519
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
    0
      src/freedombone-app-ipfs

+ 7
- 0
src/freedombone-app-ipfs 查看文件

387
     cat <<EOF > ${rootdir}/root/install_ipfs_go.sh
387
     cat <<EOF > ${rootdir}/root/install_ipfs_go.sh
388
 #!/bin/bash
388
 #!/bin/bash
389
 
389
 
390
+export GOPATH=$GOPATH
391
+
392
+if [ ${#GOPATH} -lt 1 ]; then
393
+    echo $'GOPATH was not set'
394
+    exit 62925
395
+fi
396
+
390
 if [ ! -d /home/git ]; then
397
 if [ ! -d /home/git ]; then
391
     adduser --disabled-login --gecos 'Gogs' git
398
     adduser --disabled-login --gecos 'Gogs' git
392
 
399