mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Fetch RaspAP version and set MOTD
This commit is contained in:
		
							
								
								
									
										21
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user