update-fix

This commit is contained in:
simono41 2018-04-08 20:04:07 +02:00
parent 33559ee63c
commit bf5209e4f2
2 changed files with 4 additions and 6 deletions

View file

@ -1110,11 +1110,7 @@ if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler}
if [ "$graphical" != "n" ]
then
cp /opt/${repo}/arch-graphical-install-auto ${mountpoint}/root/arch-graphical-install-auto
if [ "${version}" == "libre" ]; then
arch-chroot ${mountpoint} /root/arch-graphical-install-auto libre
else
arch-chroot ${mountpoint} /root/arch-graphical-install-auto voll
fi
arch-chroot ${mountpoint} /root/arch-graphical-install-auto ${version}
fi
fi

View file

@ -9,6 +9,8 @@ echo "Version : Fr 22. Dez 00:00:41 CET 2017"
WEBADDRESS="https://github.com/simono41/SpectreOS.git"
repo="SpectreOS"
user="user1"
hostname="$(cat /etc/hostname)"
version="${hostname#*-}"
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
@ -43,7 +45,7 @@ then
echo "Git is not installet"
pacman -S git --needed --noconfirm
fi
/opt/${repo}/arch-graphical-install-auto "$1" "$2" "$3"
/opt/${repo}/arch-graphical-install-auto "${version}" "$2" "$3"
read -p "Aktualisierung erfolgreich Abgeschlossen. Wollen sie den PC NEUSTARTEN?: [Y/n] " sicherheitsabfrage
if [ "$sicherheitsabfrage" != "n" ]
then