Skip to content

Commit a4f1a89

Browse files
authored
Fetch RaspAP version and set MOTD
1 parent 71990ce commit a4f1a89

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ jobs:
3434
3535
# Set Wi-Fi country to prevent RF kill
3636
raspi-config nonint do_wifi_country "US"
37+
38+
# Fetch RaspAP version and set MOTD
39+
RASPAP_VERSION=\$(curl -sL https://install.raspap.com | bash -s -- --version)
40+
echo "\$RASPAP_VERSION" | tee /etc/motd
41+
EOF
42+
} &&
43+
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
44+
{
45+
cat > stage-raspap/prerun.sh <<-EOF
46+
#!/bin/bash -e
47+
if [ ! -d "\${ROOTFS_DIR}" ]; then
48+
copy_previous
49+
fi
3750
EOF
3851
} &&
3952
chmod +x stage-raspap/package-raspap/00-run-chroot.sh &&
@@ -47,14 +60,6 @@ jobs:
4760
} &&
4861
chmod +x stage-raspap/prerun.sh
4962
50-
- name: Increase swap
51-
run: |
52-
sudo fallocate -l 4G /swapfile
53-
sudo chmod 600 /swapfile
54-
sudo mkswap /swapfile
55-
sudo swapon /swapfile
56-
free -h
57-
5863
- name: Build RaspAP Image
5964
id: build
6065
uses: usimd/pi-gen-action@v1

0 commit comments

Comments
 (0)