ibnstaller
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#!/bin/bash
|
||||
# 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
|
||||
## 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
|
||||
|
||||
@@ -15,6 +15,28 @@ packages="apache2 nginx build-essential cowsay iotop iptraf-ng gh btop screen by
|
||||
|
||||
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
|
||||
echo "Updating software lists"
|
||||
sudo apt update
|
||||
@@ -44,28 +66,6 @@ else
|
||||
echo "skipping package install"
|
||||
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
|
||||
if [ -f $finalDir/tag.txt ]; then
|
||||
echo "Found existing tag.txt, backing up"
|
||||
|
||||
Reference in New Issue
Block a user