1754707529
This commit is contained in:
@@ -10,6 +10,8 @@ else
|
||||
username="$SUDO_USER"
|
||||
fi
|
||||
|
||||
echo -e "\nConfigure Discord Webhook Settings"
|
||||
|
||||
# get webhook url
|
||||
echo -e "\nEnter Discord Webhook URL"
|
||||
read webhook_url
|
||||
@@ -23,11 +25,11 @@ sudo bash -c "echo '$webhook_url' > $finalDir/webhook.txt"
|
||||
sudo bash -c "echo '$webhook_tag' > $finalDir/tag.txt"
|
||||
|
||||
# fix ownership
|
||||
echo "Changing ownership of $finalDir to $username:$username recursively"
|
||||
echo -e "\nChanging ownership of $finalDir to $username:$username recursively"
|
||||
sudo chown -R $username:$username $finalDir
|
||||
|
||||
# fix perms
|
||||
echo "Setting perms of $finalDir and contents to 775"
|
||||
echo -e "\nSetting perms of $finalDir and contents to 775"
|
||||
sudo chmod -R 775 $finalDir
|
||||
|
||||
echo -e "\n\nDone! Restart shell:\n\texec \"\$SHELL\"\n"
|
||||
|
||||
Reference in New Issue
Block a user