Fetch RaspAP version and set MOTD

This commit is contained in:
Bill Zimmerman 2025-02-12 08:34:42 +01:00 committed by GitHub
parent 71990cec80
commit a4f1a89cef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,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 &&
@ -47,14 +60,6 @@ jobs:
} &&
chmod +x stage-raspap/prerun.sh
- name: Increase swap
run: |
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free -h
- name: Build RaspAP Image
id: build
uses: usimd/pi-gen-action@v1