Sfoglia il codice sorgente

installer.sh.in: remove espeakup from local install if not enabled

classabbyamp 2 anni fa
parent
commit
1ff636a1c5
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      installer.sh.in

+ 6 - 1
installer.sh.in

@@ -1324,7 +1324,12 @@ ${BOLD}Do you want to continue?${RESET}" 20 80 || return
         chroot $TARGETDIR dracut --no-hostonly --add-drivers "ahci" --force >>$LOG 2>&1
         INFOBOX "Removing temporary packages from target ..." 4 60
         echo "Removing temporary packages from target ..." >$LOG
-        xbps-remove -r $TARGETDIR -Ry dialog xtools-minimal xmirror >>$LOG 2>&1
+        TO_REMOVE="dialog xtools-minimal"
+        # only remove espeakup if it wasn't enabled in the live environment
+        if ! [ -e "/var/service/espeakup" ]; then
+            TO_REMOVE+=" espeakup"
+        fi
+        xbps-remove -r $TARGETDIR -Ry $TO_REMOVE >>$LOG 2>&1
         rmdir $TARGETDIR/mnt/target
     else
         # mount required fs