diff --git a/includes/post-install.ksi b/includes/post-install.ksi index a2c2d9d..83d5678 100644 --- a/includes/post-install.ksi +++ b/includes/post-install.ksi @@ -7,9 +7,9 @@ echo "nameserver 1.1.1.1" > /etc/resolv.conf # The script that expands root partition [ -d /usr/local/bin ] || mkdir --verbose /usr/local/bin -curl 'https://git.resf.org/thefossguy/rocky-linux-generic-images/raw/branch/r9/scripts/expand-rootfs.sh' --output expand-rootfs.sh -mv -v f expand-rootfs.sh /usr/local/bin/expand-rootfs.sh -chmod --verbose +x /usr/local/bin/expand-rootfs.sh +curl 'https://git.resf.org/thefossguy/rocky-linux-generic-images/raw/branch/r9/scripts/expand-rootfs.sh' --output /usr/local/bin/expand-rootfs.sh +[ -f /usr/local/bin/expand-rootfs.sh ] && \ + chmod --verbose +x /usr/local/bin/expand-rootfs.sh # Rebuild the RPM database rpm --rebuilddb