Deleted install pkgs script

This commit is contained in:
Rodolfo 2024-06-29 03:11:44 +08:00
parent 0a88ff887b
commit 3f93fd90de

View file

@ -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