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 &&