Browse Source

More generic gogs directories

Bob Mottram 9 years ago
parent
commit
0a11d65985
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      src/freedombone

+ 7
- 4
src/freedombone View File

213
 GIT_DOMAIN_NAME=
213
 GIT_DOMAIN_NAME=
214
 GIT_CODE=
214
 GIT_CODE=
215
 GIT_ONION_PORT=8090
215
 GIT_ONION_PORT=8090
216
-GIT_DOMAIN_REPO="https://github.com/gogits/gogs.git"
216
+GIT_DOMAIN_REPO="https://github.com/gogits/gogs"
217
 GIT_ADMIN_PASSWORD=
217
 GIT_ADMIN_PASSWORD=
218
 GOGS_COMMIT='efea642d6cf419c9587d44b95ff2bc04e89f7bfe'
218
 GOGS_COMMIT='efea642d6cf419c9587d44b95ff2bc04e89f7bfe'
219
 GO_PACKAGE_MANAGER_REPO="https://github.com/gpmgo/gopm"
219
 GO_PACKAGE_MANAGER_REPO="https://github.com/gpmgo/gopm"
6675
     if [ ! -d $GOPATH/src/github.com/gogits ]; then
6675
     if [ ! -d $GOPATH/src/github.com/gogits ]; then
6676
         mkdir -p $GOPATH/src/github.com/gogits
6676
         mkdir -p $GOPATH/src/github.com/gogits
6677
     fi
6677
     fi
6678
-    cd $GOPATH/src/github.com/gogits
6679
     git_clone $GIT_DOMAIN_REPO $GOPATH/src/github.com/gogits/gogs
6678
     git_clone $GIT_DOMAIN_REPO $GOPATH/src/github.com/gogits/gogs
6680
-    cd gogs
6679
+    if [ ! -d $GOPATH/src/github.com/gogits/gogs ]; then
6680
+        echo $"Unable to clone repo $GOPATH/src/github.com/gogits/gogs"
6681
+        exit 85482
6682
+    fi
6683
+    cd $GOPATH/src/github.com/gogits/gogs
6681
     git checkout $GOGS_COMMIT -b $GOGS_COMMIT
6684
     git checkout $GOGS_COMMIT -b $GOGS_COMMIT
6682
     if ! grep -q "Gogs commit" $COMPLETION_FILE; then
6685
     if ! grep -q "Gogs commit" $COMPLETION_FILE; then
6683
         echo "Gogs commit:$GOGS_COMMIT" >> $COMPLETION_FILE
6686
         echo "Gogs commit:$GOGS_COMMIT" >> $COMPLETION_FILE
9636
         exit 8242
9639
         exit 8242
9637
     fi
9640
     fi
9638
 
9641
 
9639
-    cd /home/git/go/src/github.com/ipfs/go-ipfs
9642
+    cd /home/git/go/src/$IPFS_GO_REPO2
9640
     git checkout $IPFS_COMMIT -b $IPFS_COMMIT
9643
     git checkout $IPFS_COMMIT -b $IPFS_COMMIT
9641
     if ! grep -q "ipfs commit" $COMPLETION_FILE; then
9644
     if ! grep -q "ipfs commit" $COMPLETION_FILE; then
9642
         echo "ipfs commit:$IPFS_COMMIT" >> $COMPLETION_FILE
9645
         echo "ipfs commit:$IPFS_COMMIT" >> $COMPLETION_FILE