fixed ifnet and also DELETED THE LEAKED WEBHOOK LOL

This commit is contained in:
2025-08-08 17:57:57 -06:00
parent 52b91af97c
commit 70c033ac39
3 changed files with 21 additions and 8 deletions
+13
View File
@@ -1,7 +1,20 @@
#!/bin/bash #!/bin/bash
# get webhook url
echo "Enter Discord Webhook URL" echo "Enter Discord Webhook URL"
read url read url
# get tag
echo "Enter Tag to Notify" echo "Enter Tag to Notify"
read tag read tag
# write da files
sudo bash -c "echo '$url' > /usr/share/customscripts/webhook.txt" sudo bash -c "echo '$url' > /usr/share/customscripts/webhook.txt"
sudo bash -c "echo '$tag' > /usr/share/customscripts/tag.txt" sudo bash -c "echo '$tag' > /usr/share/customscripts/tag.txt"
# fix ownership
echo "Changing ownership of $finalDir to $username:$username recursively"
sudo chown -R $username:$username "$finalDir"
# fix perms
echo "Setting perms of $finalDir and contents to 775"
sudo chmod -R 775 "$finalDir"
+1 -1
View File
@@ -33,4 +33,4 @@ if [[ $IS_ONLINE -eq 0 ]]; then
exit 1 exit 1
fi fi
bash $1 2>> /var/log/cron.error.log sudo bash $1 2>> /var/log/cron.error.log
+6 -6
View File
@@ -53,12 +53,12 @@ echo "Placing in $finalDir"
sudo mv "$tmpDir/customscripts" "$finalDir" sudo mv "$tmpDir/customscripts" "$finalDir"
# configure webhook # configure webhook
echo "Enter Discord Webhook URL" # echo "Enter Discord Webhook URL"
read url # read url
echo "Enter Tag to Notify" # echo "Enter Tag to Notify"
read tag # read tag
sudo bash -c "echo '$url' > $finalDir/webhook.txt" # sudo bash -c "echo '$url' > $finalDir/webhook.txt"
sudo bash -c "echo '$tag' > $finalDir/tag.txt" # sudo bash -c "echo '$tag' > $finalDir/tag.txt"
# fix ownership # fix ownership
echo "Changing ownership of $finalDir to $username:$username recursively" echo "Changing ownership of $finalDir to $username:$username recursively"