|
@@ -28,7 +28,7 @@
|
28
|
28
|
# You should have received a copy of the GNU Affero General Public License
|
29
|
29
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
30
|
30
|
|
31
|
|
-VARIANTS='mesh'
|
|
31
|
+VARIANTS=''
|
32
|
32
|
|
33
|
33
|
IPFS_GO_REPO_BASE="github.com/ipfs/go-ipfs"
|
34
|
34
|
IPFS_GO_REPO="https://${IPFS_GO_REPO_BASE}"
|
|
@@ -54,9 +54,6 @@ function upgrade_ipfs_go {
|
54
|
54
|
return
|
55
|
55
|
fi
|
56
|
56
|
|
57
|
|
- function_check select_go_version
|
58
|
|
- select_go_version
|
59
|
|
-
|
60
|
57
|
function_check set_repo_commit
|
61
|
58
|
set_repo_commit $GOPATH/src/github.com/ipfs/go-ipfs "ipfs commit" "$IPFS_COMMIT" $IPFS_REPO
|
62
|
59
|
}
|
|
@@ -153,8 +150,6 @@ function remove_ipfs_go {
|
153
|
150
|
if ! grep -Fxq "install_ipfs_go" $COMPLETION_FILE; then
|
154
|
151
|
return
|
155
|
152
|
fi
|
156
|
|
- function_check select_go_version
|
157
|
|
- select_go_version
|
158
|
153
|
systemctl stop ipfs
|
159
|
154
|
systemctl disable ipfs
|
160
|
155
|
systemctl daemon-reload
|
|
@@ -398,14 +393,24 @@ function mesh_install_ipfs_go {
|
398
|
393
|
if [[ $ARCHITECTURE == *"386" || $ARCHITECTURE == *"686" ]]; then
|
399
|
394
|
IPFS_ARCH=386
|
400
|
395
|
fi
|
401
|
|
- if [[ $ARCHITECTURE == *"amd64" ]]; then
|
|
396
|
+ if [[ $ARCHITECTURE == *"amd64" || $ARCHITECTURE == "x86_64" ]]; then
|
402
|
397
|
IPFS_ARCH=amd64
|
403
|
398
|
fi
|
404
|
399
|
if [[ $ARCHITECTURE == *"arm"* ]]; then
|
405
|
400
|
IPFS_ARCH=arm
|
406
|
401
|
fi
|
407
|
402
|
if [ ! $IPFS_ARCH ]; then
|
408
|
|
- return
|
|
403
|
+ echo $'No architecture specified'
|
|
404
|
+ ARCHITECTURE=$(uname -m)
|
|
405
|
+ if [[ $ARCHITECTURE == "arm"* ]]; then
|
|
406
|
+ IPFS_ARCH=arm
|
|
407
|
+ fi
|
|
408
|
+ if [[ $ARCHITECTURE == "amd"* || $ARCHITECTURE == "x86_64" ]]; then
|
|
409
|
+ IPFS_ARCH=amd64
|
|
410
|
+ fi
|
|
411
|
+ if [[ $ARCHITECTURE == *"386" || $ARCHITECTURE == *"686" ]]; then
|
|
412
|
+ IPFS_ARCH=386
|
|
413
|
+ fi
|
409
|
414
|
fi
|
410
|
415
|
|
411
|
416
|
IPFS_FILE=go-ipfs_v${IPFS_GO_VERSION}_linux-${IPFS_ARCH}.tar.gz
|
|
@@ -450,9 +455,6 @@ function install_ipfs_go {
|
450
|
455
|
return
|
451
|
456
|
fi
|
452
|
457
|
|
453
|
|
- function_check select_go_version
|
454
|
|
- select_go_version
|
455
|
|
-
|
456
|
458
|
apt-get -y install golang libpam0g-dev fuse
|
457
|
459
|
|
458
|
460
|
if [ ! -d /home/git ]; then
|