diff --git a/customscripts/configure_webhook.sh b/customscripts/configure_webhook.sh index 4f69860..19825c0 100644 --- a/customscripts/configure_webhook.sh +++ b/customscripts/configure_webhook.sh @@ -1,7 +1,20 @@ #!/bin/bash +# get webhook url echo "Enter Discord Webhook URL" read url + +# get tag echo "Enter Tag to Notify" read tag + +# write da files sudo bash -c "echo '$url' > /usr/share/customscripts/webhook.txt" -sudo bash -c "echo '$tag' > /usr/share/customscripts/tag.txt" \ No newline at end of file +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" \ No newline at end of file diff --git a/customscripts/ifnet b/customscripts/ifnet index 9748f49..50ecc92 100644 --- a/customscripts/ifnet +++ b/customscripts/ifnet @@ -33,4 +33,4 @@ if [[ $IS_ONLINE -eq 0 ]]; then exit 1 fi -bash $1 2>> /var/log/cron.error.log \ No newline at end of file +sudo bash $1 2>> /var/log/cron.error.log \ No newline at end of file diff --git a/customscripts/install_script.sh b/customscripts/install_script.sh index c7f5162..3a5911c 100644 --- a/customscripts/install_script.sh +++ b/customscripts/install_script.sh @@ -53,12 +53,12 @@ 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" +# 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"