From 85586b3a682ce1798b7bf33056a6052a7678bd18 Mon Sep 17 00:00:00 2001 From: JeGoi <13801368+JeGoi@users.noreply.github.com> Date: Tue, 24 Sep 2024 08:40:29 -0400 Subject: [PATCH] Fix/8302 APT PublicKey Missing (#8309) * Fix PF public key in ISO * Fix root password in iso * Revert "Fix root password in iso". User should be to set it during installation This reverts commit 823c053e42fa569d6807d3c2aae627bee5095888. * Wake up gitlab --- README.md | 1 - ci/debian-installer/postinst-debian-installer.sh | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5717102b19e6..3e1c7d6b19f5 100644 --- a/README.md +++ b/README.md @@ -95,4 +95,3 @@ Licensed under the GNU General Public License v2. [mailing_lists]: https://packetfence.org/support/index.html#/community "Community Mailing Lists" - diff --git a/ci/debian-installer/postinst-debian-installer.sh b/ci/debian-installer/postinst-debian-installer.sh index 176757eec69f..0f0cf5084e6e 100644 --- a/ci/debian-installer/postinst-debian-installer.sh +++ b/ci/debian-installer/postinst-debian-installer.sh @@ -7,7 +7,11 @@ apt install packetfence -y sed -i '/^deb cdrom:/s/^/#/' /etc/apt/sources.list sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config sed -i 's/.*inverse\.ca.*//g' /etc/apt/sources.list -echo "deb http://inverse.ca/downloads/PacketFence/debian/${PF_VERSION} bookworm bookworm" > /etc/apt/sources.list.d/packetfence.list +apt-get update +apt install gnupg sudo curl +curl -fsSL https://inverse.ca/downloads/GPG_PUBLIC_KEY | gpg --dearmor -o /etc/apt/keyrings/packetfence.gpg +echo "deb [signed-by=/etc/apt/keyrings/packetfence.gpg] http://inverse.ca/downloads/PacketFence/debian/14.0 bookworm bookworm" > \ + /etc/apt/sources.list.d/packetfence.list echo "SET PASSWORD FOR root@'localhost' = PASSWORD('');" > /tmp/reset-root.sql mkdir /run/mysqld chown mysql: /run/mysqld/