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