From eb27ba2c6620bd8c9e74794bc6ce7fbb1866e4c9 Mon Sep 17 00:00:00 2001 From: billz Date: Wed, 12 Feb 2025 08:30:33 -0800 Subject: [PATCH] Fetch RaspAP version and set MOTD --- .github/workflows/release.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ede5446e..95cacb8f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,19 @@ jobs: # Set Wi-Fi country to prevent RF kill raspi-config nonint do_wifi_country "US" + + # Fetch RaspAP version and set MOTD + RASPAP_VERSION=\$(curl -sL https://install.raspap.com | bash -s -- --version) + echo "\$RASPAP_VERSION" | tee /etc/motd + EOF + } && + chmod +x stage-raspap/package-raspap/00-run-chroot.sh && + { + cat > stage-raspap/prerun.sh <<-EOF + #!/bin/bash -e + if [ ! -d "\${ROOTFS_DIR}" ]; then + copy_previous + fi EOF } && chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&