File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -7,28 +7,6 @@ echo '=== Current directory: \$(pwd) ==='
77echo ' === Files in current directory: ==='
88ls -la
99
10- REPO_ENTRY=" deb http://apt.thundercomm.com/rubik-pi-3/noble ppa main"
11- HOST_ENTRY=" 151.106.120.85 apt.rubikpi.ai" # TODO: Remove legacy
12-
13- # First update the APT
14- apt-get update -y
15-
16-
17- # TODO: Remove legacy
18- if grep -q " $HOST_ENTRY " /etc/hosts; then
19- echo " Removing legacy host entry from /etc/hosts"
20- sed -i " /$HOST_ENTRY /d" /etc/hosts
21- fi
22-
23- if grep -q " apt.rubikpi.ai ppa main" /etc/apt/sources.list; then
24- echo " Removing legacy repo entry from /etc/apt/sources.list"
25- sed -i ' /apt.rubikpi.ai ppa main/d' /etc/apt/sources.list
26- fi
27-
28- if ! grep -q " ^[^#]*$REPO_ENTRY " /etc/apt/sources.list; then
29- echo " $REPO_ENTRY " | tee -a /etc/apt/sources.list > /dev/null
30- fi
31-
3210# Add the GPG key for the RUBIK Pi PPA
3311wget -qO - https://thundercomm.s3.dualstack.ap-northeast-1.amazonaws.com/uploads/web/rubik-pi-3/tools/key.asc | tee /etc/apt/trusted.gpg.d/rubikpi3.asc
3412
You can’t perform that action at this time.
0 commit comments