Fix file permissions on generated boot artifacts for HTTP serving
This commit is contained in:
@@ -251,5 +251,13 @@ echo "Deploying to HTTP directory..."
|
|||||||
rsync -av $IMAGE_DIR/$VERSION/ $HTTP_DIR/
|
rsync -av $IMAGE_DIR/$VERSION/ $HTTP_DIR/
|
||||||
ln -sfn $VERSION $HTTP_DIR/latest
|
ln -sfn $VERSION $HTTP_DIR/latest
|
||||||
|
|
||||||
|
# Fix permissions for web server access
|
||||||
|
echo "Setting permissions for HTTP serving..."
|
||||||
|
chmod 644 $HTTP_DIR/vmlinuz
|
||||||
|
chmod 644 $HTTP_DIR/initrd-netboot.img
|
||||||
|
chmod 644 $HTTP_DIR/filesystem.squashfs
|
||||||
|
chmod 644 $HTTP_DIR/version.txt
|
||||||
|
|
||||||
echo "Build complete! Version: $VERSION"
|
echo "Build complete! Version: $VERSION"
|
||||||
echo "Files available at: $HTTP_DIR/"
|
echo "Files available at: $HTTP_DIR/"
|
||||||
|
ls -lh $HTTP_DIR/vmlinuz $HTTP_DIR/initrd-netboot.img $HTTP_DIR/filesystem.squashfs
|
||||||
|
|||||||
Reference in New Issue
Block a user