Skip to content

Commit bb045c9

Browse files
committed
Apt changes
1 parent b860f5f commit bb045c9

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

base.Pifile

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,20 @@ EOF
2626

2727
echo "Done."
2828

29-
INSTALL 644 files/learningequality-ubuntu-kolibri-bionic.list /etc/apt/sources.list.d/
29+
INSTALL 644 files/learningequality-ubuntu-kolibri-noble.list /etc/apt/sources.list.d/
30+
31+
# Copy the GPG key file into the Docker image
32+
INSTALL 644 files/learningequality.gpg.key /tmp/learningequality.gpg.key
33+
34+
# Convert the GPG key to binary format
35+
RUN bash -c 'gpg --dearmor < /tmp/learningequality.gpg.key > /tmp/learningequality.gpg'
36+
37+
# Install the binary GPG key to the trusted directory
38+
RUN install -m 644 /tmp/learningequality.gpg /etc/apt/trusted.gpg.d/
39+
40+
# Clean up temporary files
41+
RUN rm -f /tmp/learningequality.gpg /tmp/learningequality.gpg.key
3042

31-
RUN apt-key add - <<EOF
32-
$(cat files/learningequality.gpg.key)
33-
EOF
3443

3544
RUN mkdir -p "/home/${user}/.kolibri"
3645
RUN mkdir -p /KOLIBRI_DATA/content
@@ -76,7 +85,6 @@ EOF
7685

7786
RUN rm /etc/nginx/sites-enabled/default
7887

79-
RUN systemctl enable dhcpcd
8088
RUN systemctl enable hostapd
8189
RUN systemctl enable dnsmasq
8290
RUN systemctl enable nginx

files/learningequality-ubuntu-kolibri-bionic.list

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deb http://ppa.launchpad.net/learningequality/kolibri/ubuntu noble main
2+

0 commit comments

Comments
 (0)