fix
This commit is contained in:
parent
693cb40426
commit
4f8166e66d
2 changed files with 4 additions and 3 deletions
|
@ -24,7 +24,7 @@ userpass="$3"
|
||||||
archchroot="$4"
|
archchroot="$4"
|
||||||
|
|
||||||
hostname="$(cat /etc/hostname)"
|
hostname="$(cat /etc/hostname)"
|
||||||
version="${hostname#*-}"
|
[[ -z "${version}" ]] && version="${hostname#*-}"
|
||||||
[[ -z "${username}" ]] && username="user1"
|
[[ -z "${username}" ]] && username="user1"
|
||||||
[[ -z "${userpass}" ]] && userpass="user1"
|
[[ -z "${userpass}" ]] && userpass="user1"
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,8 @@ WEBADDRESS="https://github.com/simono41/SpectreOS.git"
|
||||||
repo="SpectreOS"
|
repo="SpectreOS"
|
||||||
user="user1"
|
user="user1"
|
||||||
hostname="$(cat /etc/hostname)"
|
hostname="$(cat /etc/hostname)"
|
||||||
version="${hostname#*-}"
|
version="${1}"
|
||||||
|
[[ -z "${version}" ]] && 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
|
||||||
|
@ -45,7 +46,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 "${version}" "$2" "$3"
|
/opt/${repo}/arch-graphical-install-auto "${version}" "$2" "$3" "archchroot"
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue