1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-07-11 15:57:41 +02:00

Merge pull request #1757 from RaspAP/maint/version-motd

Fetch RaspAP version and set MOTD
This commit is contained in:
Bill Zimmerman 2025-02-13 08:07:02 +01:00 committed by GitHub
commit 867a46bee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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