Update the build-ipk to ensure all .sh files in cgi-bin are executable

This commit is contained in:
Christopher Landwehr
2025-07-27 10:10:07 -04:00
parent 5afecaeaba
commit c2d4f9f0f6

View File

@@ -50,6 +50,10 @@ echo "Setting ownership for all package files..."
chown -R root:root "${build_path}/CONTROL"/* chown -R root:root "${build_path}/CONTROL"/*
chown -R root:root "${build_path}/root"/* chown -R root:root "${build_path}/root"/*
# Set +x permissions for CGI scripts that match *.sh in the cgi-bin directory
# (this was tested and works on OpenWRT/SDXPINN platform)
chmod -R 755 "${build_path}/root/www/cgi-bin/**/*.sh"
# Create control.tar.gz from the CONTROL directory # Create control.tar.gz from the CONTROL directory
echo "Creating control.tar.gz..." echo "Creating control.tar.gz..."
tar -czvf control.tar.gz -C "${build_path}/CONTROL" . tar -czvf control.tar.gz -C "${build_path}/CONTROL" .