From 4c7d286731e8e49148d4b7a36205c33a05788562 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 3 Apr 2023 11:18:37 +0200 Subject: [PATCH] Add script for installing gnome --- scripts/Arch/OS/setup.sh | 1 + scripts/Arch/Software/GNOME/install.sh | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 scripts/Arch/Software/GNOME/install.sh diff --git a/scripts/Arch/OS/setup.sh b/scripts/Arch/OS/setup.sh index 88fefd86..8fa26503 100755 --- a/scripts/Arch/OS/setup.sh +++ b/scripts/Arch/OS/setup.sh @@ -41,6 +41,7 @@ arch-chroot "$ARCH_MOUNT_ROOT" mkinitcpio -P; arch-chroot "$ARCH_MOUNT_ROOT" bash "$tempDir/../Software/GRUB/install.sh"; arch-chroot "$ARCH_MOUNT_ROOT" bash "$tempDir/../Software/sudo/install.sh"; +arch-chroot "$ARCH_MOUNT_ROOT" bash "$tempDir/../Software/GNOME/install.sh"; USER_NAME="${USER_NAME}" \ diff --git a/scripts/Arch/Software/GNOME/install.sh b/scripts/Arch/Software/GNOME/install.sh new file mode 100644 index 00000000..63934098 --- /dev/null +++ b/scripts/Arch/Software/GNOME/install.sh @@ -0,0 +1,8 @@ +# Elevate script +if [ ! "$UID" -eq 0 ] +then + sudo bash "$BASH_SOURCE" "$USER"; +else + pacman --noconfirm -Syu gnome + systemctl enable gdm; +fi;