Update install.sh

This commit is contained in:
Kroese 2024-01-22 01:50:54 +01:00 committed by GitHub
parent 42539989cb
commit 09144a9d3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,10 +70,13 @@ fi
[[ "${BASE,,}" == "custom."* ]] && BASE="target.iso" [[ "${BASE,,}" == "custom."* ]] && BASE="target.iso"
html "$MSG" html "$MSG"
[ -f "$STORAGE/$BASE" ] && return 0
TMP="$STORAGE/tmp" TMP="$STORAGE/tmp"
if [ -f "$STORAGE/$BASE" ]; then
rm -rf "$TMP"
return 0
fi
mkdir -p "$TMP" mkdir -p "$TMP"
ISO="$TMP/$BASE" ISO="$TMP/$BASE"
@ -98,14 +101,8 @@ fi
if [ ! -f "$ISO" ]; then if [ ! -f "$ISO" ]; then
if [[ "$EXTERNAL" != [Yy1]* ]]; then if [[ "$EXTERNAL" != [Yy1]* ]]; then
SCRIPT="$TMP/mido.sh"
rm -f "$SCRIPT"
cp /run/mido.sh "$SCRIPT"
chmod +x "$SCRIPT"
cd "$TMP" cd "$TMP"
bash "$SCRIPT" "$VERSION" /run/mido.sh "$VERSION"
rm -f "$SCRIPT"
cd /run cd /run
else else
@ -311,8 +308,8 @@ genisoimage -b "$ETFS" -no-emul-boot -c "$CAT" -iso-level 4 -J -l -D -N -joliet-
-boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$OUT" -allow-limited-size "$DIR" -boot-info-table -eltorito-alt-boot -eltorito-boot "$EFISYS" -no-emul-boot -o "$OUT" -allow-limited-size "$DIR"
[ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM" [ -n "$CUSTOM" ] && rm -f "$STORAGE/$CUSTOM"
mv "$OUT" "$STORAGE/$BASE"
mv "$OUT" "$STORAGE/$BASE"
rm -rf "$TMP" rm -rf "$TMP"
html "Successfully prepared image for installation..." html "Successfully prepared image for installation..."