ibnstaller
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# install with
|
# install with
|
||||||
## curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh | sudo "$SHELL" && bash /usr/share/customscripts/configure_webhook.sh && exec "$SHELL"
|
## curl -s https://raw.githubusercontent.com/PrincessPi3/general-scripts-and-system-ssssssetup/refs/heads/main/customscripts/install_script.sh | sudo "$SHELL" && bash /usr/share/customscripts/configure_webhook.sh && 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 && sudo $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
|
||||||
|
|
||||||
gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git'
|
gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.git'
|
||||||
@@ -24,6 +24,8 @@ if [ ! -z "$1" ]; then
|
|||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
# echo "rebootan before run againnn (in 1 minute)"
|
# echo "rebootan before run againnn (in 1 minute)"
|
||||||
# sudo shutdown -r +1
|
# sudo shutdown -r +1
|
||||||
|
else
|
||||||
|
echo "skipping package install"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ta get da right usermayhaps
|
# ta get da right usermayhaps
|
||||||
@@ -53,23 +55,31 @@ fi
|
|||||||
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"
|
||||||
cp $finalDir/tag.txt /tmp/tag.txt
|
cp $finalDir/tag.txt /tmp/tag.txt
|
||||||
|
else
|
||||||
|
echo "no existing tag.txt, skipping backup of it"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f $finalDir/webhook.txt ]; then
|
if [ -f $finalDir/webhook.txt ]; then
|
||||||
echo "Found existing webhook.txt, backing up"
|
echo "Found existing webhook.txt, backing up"
|
||||||
cp $finalDir/webhook.txt /tmp/webhook.txt
|
cp $finalDir/webhook.txt /tmp/webhook.txt
|
||||||
|
else
|
||||||
|
echo "no existing webhook.txt, skipping backup of it"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# clean up any exisiting repo dir
|
# clean up any exisiting repo dir
|
||||||
if [[ -d "$tmpDir" ]]; then
|
if [[ -d "$tmpDir" ]]; then
|
||||||
echo "Cleaning Up Existing $tmpDir"
|
echo "Cleaning Up Existing $tmpDir"
|
||||||
rm -rf "$tmpDir"
|
rm -rf "$tmpDir"
|
||||||
|
else
|
||||||
|
echo "$tmpDir not found, skipping deleting it"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# clean up any existing install
|
# clean up any existing install
|
||||||
if [[ -d "$finalDir" ]]; then
|
if [[ -d "$finalDir" ]]; then
|
||||||
echo "Cleaning Up Existing $finalDir"
|
echo "Cleaning Up Existing $finalDir"
|
||||||
rm -rf "$finalDir"
|
rm -rf "$finalDir"
|
||||||
|
else
|
||||||
|
echo "$finalDir not found, will create"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ddownload repo
|
# ddownload repo
|
||||||
|
|||||||
Reference in New Issue
Block a user