Skip to content

Commit 8d72dfd

Browse files
committed
remove legacy apt sources
1 parent ea7645d commit 8d72dfd

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

install_rubikpi3.sh

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,6 @@ echo '=== Current directory: \$(pwd) ==='
77
echo '=== Files in current directory: ==='
88
ls -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
3311
wget -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

0 commit comments

Comments
 (0)