1754707459

This commit is contained in:
2025-08-08 20:44:19 -06:00
parent ad95d42028
commit dfb807be92
2 changed files with 11 additions and 17 deletions
+5 -3
View File
@@ -11,11 +11,11 @@ else
fi
# get webhook url
echo "Enter Discord Webhook URL"
echo -e "\nEnter Discord Webhook URL"
read webhook_url
# get tag
echo "Enter Tag to Notify"
echo -e "\nEnter Tag to Notify"
read webhook_tag
# write da files
@@ -28,4 +28,6 @@ sudo chown -R $username:$username $finalDir
# fix perms
echo "Setting perms of $finalDir and contents to 775"
sudo chmod -R 775 $finalDir
sudo chmod -R 775 $finalDir
echo -e "\n\nDone! Restart shell:\n\texec \"\$SHELL\"\n"
+6 -14
View File
@@ -7,11 +7,11 @@ gitRepo='https://github.com/PrincessPi3/general-scripts-and-system-ssssssetup.gi
tmpDir='/tmp/customscripts'
finalDir='/usr/share/customscripts'
echo "Updating software lists"
sudo apt update
# echo "Updating software lists"
# sudo apt update
echo "Installan my packages"
sudo apt install gh net-tools htop btop iptraf iotop screen byobu wget python3 python3-pip python3-virtualenv python3-setuptools thefuck nginx wget lynx neovim nmap -y
# echo "Installan my packages"
# sudo apt install gh net-tools htop btop iptraf iotop screen byobu wget python3 python3-pip python3-virtualenv python3-setuptools thefuck nginx wget lynx neovim nmap -y
echo "Using Shell $SHELL"
@@ -54,14 +54,6 @@ git clone $gitRepo $tmpDir --single-branch --depth 1
echo "Placing in $finalDir"
sudo mv "$tmpDir/customscripts" "$finalDir"
# configure webhook
# echo "Enter Discord Webhook URL"
# read url
# echo "Enter Tag to Notify"
# read tag
# sudo bash -c "echo '$url' > $finalDir/webhook.txt"
# sudo bash -c "echo '$tag' > $finalDir/tag.txt"
# fix ownership
echo "Changing ownership of $finalDir to $username:$username recursively"
sudo chown -R $username:$username "$finalDir"
@@ -83,6 +75,6 @@ fi
# cleanup
sudo rm -f $finalDir/install_script.sh
sudo apt autoremove -y
# sudo apt autoremove -y
echo -e "\n\nDone! Restart shell:\n\texec \"\$SHELL\"\n\n"
echo "Done with first stage"