Bob Mottram 8 years ago
parent
commit
9107240519
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/freedombone-app-ipfs

+ 7
- 0
src/freedombone-app-ipfs View File

@@ -387,6 +387,13 @@ function mesh_install_ipfs_go {
387 387
     cat <<EOF > ${rootdir}/root/install_ipfs_go.sh
388 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 397
 if [ ! -d /home/git ]; then
391 398
     adduser --disabled-login --gecos 'Gogs' git
392 399