ibnstaller

This commit is contained in:
2025-11-01 18:40:03 -06:00
parent bd5d2218e7
commit 72503bb395
+24 -24
View File
@@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
# install without upfate and package install # install without upfate and package install
## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && sudo $SHELL -c $script && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL ## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && $SHELL -c $script && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL
# install with package install # install with package install
## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && sudo $SHELL -c "$script full" && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL ## script=/tmp/install_script.sh && curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh > $script && chmod +x $script && $SHELL -c "$script full" && $SHELL /usr/share/customscripts/configure_webhook.sh full && exec $SHELL
# set -e # make sure da silly thing dont continue when there be errorZ # set -e # make sure da silly thing dont continue when there be errorZ
@@ -15,6 +15,28 @@ packages="apache2 nginx build-essential cowsay iotop iptraf-ng gh btop screen by
echo "Using Shell $SHELL" echo "Using Shell $SHELL"
# ta get da right usermayhaps
if [[ -z $SUDO_USER ]]; then
echo "Using User $USER"
username="$USER"
else
echo "Using User $SUDO_USER"
username="$SUDO_USER"
fi
# home dir
userhome=/home/$username
# figure oot da sehell
if [[ "$SHELL" =~ bash$ ]]; then
rcfile="$userhome/.bashrc"
elif [[ "$SHELL" =~ zsh$ ]]; then
rcfile="$userhome/.zshrc"
else
echo -e "Die: Unsupported Shell";
exit 1
fi
if [ ! -z "$1" ]; then if [ ! -z "$1" ]; then
echo "Updating software lists" echo "Updating software lists"
sudo apt update sudo apt update
@@ -44,28 +66,6 @@ else
echo "skipping package install" echo "skipping package install"
fi fi
# ta get da right usermayhaps
if [[ -z $SUDO_USER ]]; then
echo "Using User $USER"
username="$USER"
else
echo "Using User $SUDO_USER"
username="$SUDO_USER"
fi
# home dir
userhome=/home/$username
# figure oot da sehell
if [[ "$SHELL" =~ bash$ ]]; then
rcfile="$userhome/.bashrc"
elif [[ "$SHELL" =~ zsh$ ]]; then
rcfile="$userhome/.zshrc"
else
echo -e "Die: Unsupported Shell";
exit 1
fi
# get the existing tag and webhooks if any # get the existing tag and webhooks if any
if [ -f $finalDir/tag.txt ]; then if [ -f $finalDir/tag.txt ]; then
echo "Found existing tag.txt, backing up" echo "Found existing tag.txt, backing up"