-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate.sh
45 lines (42 loc) · 1.04 KB
/
update.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
#version=gemini-3f-2023-sep-25
#repo=v0.6.7-alpha
if [ -e /usr/local/bin/subspace-node ]; then
echo SUBSPACE Advanced
read -r -p "Update node? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
. <(wget -qO- https://raw.githubusercontent.com/mgpwnz/subspace/main/sub_adv.sh) -up
;;
*)
echo Update canceled !
return 0
;;
esac
fi
if [ -e /root/subspace/docker-compose.yml ]; then
echo SUBSPACE DOCKER
read -r -p "Update node? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
. <(wget -qO- https://raw.githubusercontent.com/mgpwnz/subspace/main/subspace.sh) -up
;;
*)
echo Update canceled !
return 0
;;
esac
fi
if [ -e /usr/local/bin/pulsar ]; then
echo SUBSPACE Pulsar
read -r -p "Update node? [y/N] " response
case "$response" in
[yY][eE][sS]|[yY])
. <(wget -qO- https://raw.githubusercontent.com/mgpwnz/subspace/main/subspace_cli.sh) -up
;;
*)
echo Update canceled !
return 0
;;
esac
fi