workan on installer and configure_webhook.sh
This commit is contained in:
@@ -22,18 +22,18 @@ fi
|
|||||||
|
|
||||||
echo -e "\nConfigure Discord Webhook Settings"
|
echo -e "\nConfigure Discord Webhook Settings"
|
||||||
|
|
||||||
if [ -f /tmp/tag.txt ] && [ -f /tmp/webhook.txt ] && [ $webhook -eq 0 ]; then
|
if [ -f /tmp/tag.txt ] && [ -f /tmp/webhook.txt ]; then
|
||||||
echo -e "\nExisting Webhook and Tag found. Using those values unless you enter new ones.\n"
|
|
||||||
existing_webhook=$(cat /tmp/webhook.txt)
|
existing_webhook=$(cat /tmp/webhook.txt)
|
||||||
existing_tag=$(cat /tmp/tag.txt)
|
existing_tag=$(cat /tmp/tag.txt)
|
||||||
|
|
||||||
|
echo -e "\nExisting Webhook and Tag found. Using those values unless you enter new ones.\n"
|
||||||
|
echo -e "Existing Webhook URL: $existing_webhook"
|
||||||
|
echo -e "Existing Tag: $existing_tag\n"
|
||||||
|
|
||||||
# move em into place
|
# move em into place
|
||||||
sudo mv /tmp/tag.txt $finalDir/tag.txt
|
sudo mv /tmp/tag.txt $finalDir/tag.txt
|
||||||
sudo mv /tmp/webhook.txt $finalDir/webhook.txt
|
sudo mv /tmp/webhook.txt $finalDir/webhook.txt
|
||||||
|
|
||||||
echo -e "Existing Webhook URL: $existing_webhook"
|
|
||||||
echo -e "Existing Tag: $existing_tag\n"
|
|
||||||
|
|
||||||
# update permissions
|
# update permissions
|
||||||
fix_perms
|
fix_perms
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# get the existing tag and webhooks if any
|
# get the existing tag and webhooks if any
|
||||||
webhook=1
|
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user