mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-09 20:57:40 +02:00
Fetch RaspAP version and set MOTD
This commit is contained in:
parent
362a08c00f
commit
eb27ba2c66
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -33,6 +33,19 @@ jobs:
|
|||||||
|
|
||||||
# Set Wi-Fi country to prevent RF kill
|
# Set Wi-Fi country to prevent RF kill
|
||||||
raspi-config nonint do_wifi_country "US"
|
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
|
EOF
|
||||||
} &&
|
} &&
|
||||||
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
|
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user