From 3f93fd90de1c64a5a1465bc53fe5fa401879a78f Mon Sep 17 00:00:00 2001 From: Rodolfo Date: Sat, 29 Jun 2024 03:11:44 +0800 Subject: [PATCH] Deleted install pkgs script --- scripts/system-setup/install-pkgs.sh | 69 ---------------------------- 1 file changed, 69 deletions(-) delete mode 100644 scripts/system-setup/install-pkgs.sh diff --git a/scripts/system-setup/install-pkgs.sh b/scripts/system-setup/install-pkgs.sh deleted file mode 100644 index 631b4fe..0000000 --- a/scripts/system-setup/install-pkgs.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -if [[ $1 == "Debian" ]]; then - - # Setup sources - echo "$1 Sources Setup" - echo "apt-get update && apt-get -y upgrade" - - while true; do - read -rp "Would you like to use Debian Unstable? (y/n): " answer - answer="${answer,,}" - - if [[ "$answer" = "y" ]]; then - echo "Changing apt sources" - echo "cp -v ./debian-assets/debian-sid-sources.list /etc/apt/sources.list" - echo "apt-get update && apt-get -y dist-upgrade" - break - elif [[ "$answer" = "n" ]]; then - echo "Proceeding with Debian Stable" - break - else - echo "Invalid Input. Please enter 'y' or 'n'." - fi - - done - - # Sudo Setup - echo "$1 Sudo Setup" - echo "apt-get -y install sudo" - - while true; do - if [[ ! -z $(grep $2 /etc/passwd) ]]; then - echo "usermod -aG sudo $2" - break - else - read -p "Invalid Username. Use an valid existing username." username - fi - done - - echo "apt-get -y install " -fi - -if [[ $1 == "Arch" ]]; then - - # Setup Sources - echo "$1 Sources Setup" - - echo "$1 Sudo Setup" -fi - -if [[ $1 == "Debian" ]]; then -elif [[ $1 == "Arch" ]]; then - - echo "$1 Sudo Setup" - while true; do - if [[ ! -z $(grep $2 /etc/passwd) ]]; then - echo "usermod -aG wheel $2" - if [[ -f /home/$2/ ]]; then - echo "Home exists" - else - echo "Home doesn't Exist" - fi - break - else - read -p "Invalid Username. Use a valid existing username:" username - fi - done - -fi