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" ] if [ "$graphical" != "n" ]
then then
cp /opt/${repo}/arch-graphical-install-auto ${mountpoint}/root/arch-graphical-install-auto 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 ${version}
arch-chroot ${mountpoint} /root/arch-graphical-install-auto libre
else
arch-chroot ${mountpoint} /root/arch-graphical-install-auto voll
fi
fi fi
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" WEBADDRESS="https://github.com/simono41/SpectreOS.git"
repo="SpectreOS" repo="SpectreOS"
user="user1" user="user1"
hostname="$(cat /etc/hostname)"
version="${hostname#*-}"
if [[ $EUID -ne 0 ]]; then if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2 echo "This script must be run as root" 1>&2
@ -43,7 +45,7 @@ then
echo "Git is not installet" echo "Git is not installet"
pacman -S git --needed --noconfirm pacman -S git --needed --noconfirm
fi 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 read -p "Aktualisierung erfolgreich Abgeschlossen. Wollen sie den PC NEUSTARTEN?: [Y/n] " sicherheitsabfrage
if [ "$sicherheitsabfrage" != "n" ] if [ "$sicherheitsabfrage" != "n" ]
then then