浏览代码

More generic gogs directories

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

+ 7
- 4
src/freedombone 查看文件

@@ -213,7 +213,7 @@ HUBZILLA_ADDONS_COMMIT='e32f98d65850a8681e8242f3db8b6484abb35c67'
213 213
 GIT_DOMAIN_NAME=
214 214
 GIT_CODE=
215 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 217
 GIT_ADMIN_PASSWORD=
218 218
 GOGS_COMMIT='efea642d6cf419c9587d44b95ff2bc04e89f7bfe'
219 219
 GO_PACKAGE_MANAGER_REPO="https://github.com/gpmgo/gopm"
@@ -6675,9 +6675,12 @@ function install_gogs {
6675 6675
     if [ ! -d $GOPATH/src/github.com/gogits ]; then
6676 6676
         mkdir -p $GOPATH/src/github.com/gogits
6677 6677
     fi
6678
-    cd $GOPATH/src/github.com/gogits
6679 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 6684
     git checkout $GOGS_COMMIT -b $GOGS_COMMIT
6682 6685
     if ! grep -q "Gogs commit" $COMPLETION_FILE; then
6683 6686
         echo "Gogs commit:$GOGS_COMMIT" >> $COMPLETION_FILE
@@ -9636,7 +9639,7 @@ function install_ipfs {
9636 9639
         exit 8242
9637 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 9643
     git checkout $IPFS_COMMIT -b $IPFS_COMMIT
9641 9644
     if ! grep -q "ipfs commit" $COMPLETION_FILE; then
9642 9645
         echo "ipfs commit:$IPFS_COMMIT" >> $COMPLETION_FILE