Skip to content

Commit

Permalink
Fix/8302 APT PublicKey Missing (#8309)
Browse files Browse the repository at this point in the history
* 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 823c053.

* Wake up gitlab
  • Loading branch information
JeGoi authored Sep 24, 2024
1 parent e96f1bc commit 85586b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,3 @@ Licensed under the GNU General Public License v2.

[mailing_lists]: https://packetfence.org/support/index.html#/community "Community Mailing Lists"


6 changes: 5 additions & 1 deletion ci/debian-installer/postinst-debian-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 85586b3

Please sign in to comment.