1755213926

This commit is contained in:
2025-08-14 17:25:25 -06:00
parent 0666378809
commit c8a099c804
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -46,4 +46,4 @@ if [[ $IS_ONLINE -eq 0 ]]; then
exit exit
fi fi
sudo bash -c "$1 2>> $ERROR_LOG" # execute the bash script and log errors to the error log sudo bash $1 2>> $ERROR_LOG # execute the bash script and log errors to the error log
+2 -2
View File
@@ -3,13 +3,13 @@
## @reboot bash /usr/share/customscripts/ifnet "/usr/share/customscripts/webhook bootup" 2>> /var/log/cron.error.log ## @reboot bash /usr/share/customscripts/ifnet "/usr/share/customscripts/webhook bootup" 2>> /var/log/cron.error.log
# discord_webhook="https://discord.com/api/webhooks/yourwebhook" # discord_webhook="https://discord.com/api/webhooks/yourwebhook"
discord_webhook=$(cat /usr/share/customscripts/webhook.txt) discord_webhook=$(cat /usr/share/customscripts/webhook.txt)
ipaddr=$(hostname -I | grep -E -o "10.0.0.[0-9]{1,3}" | tail -2) ipaddr=$(hostname -I | grep -E -o "10.0.0.[0-9]{1,3}" | tr '\n' ' ')
date=$(date "+%d/%m/%Y %H:%M:%S %Z (%s)") date=$(date "+%d/%m/%Y %H:%M:%S %Z (%s)")
# to tag role run \@rolename and copy the code that is like <@something> # to tag role run \@rolename and copy the code that is like <@something>
# tag="<@tag>" # tag="<@tag>"
tag=$(cat /usr/share/customscripts/tag.txt) tag=$(cat /usr/share/customscripts/tag.txt)
hostname=$(hostname) hostname=$(hostname)
bootup_string="bootrred on $date\n\tip addr: $ipaddr\n\t$tag\n\n" bootup_string="bootrred on $date\n\tip addrs: $ipaddr\n\t$tag\n\n"
if [[ -z $1 ]]; then if [[ -z $1 ]]; then
content='Default Ping!' content='Default Ping!'