This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Set the path to the .last_ip file | |
LAST_IP_FILE=/opt/scripts/.last_ip | |
# Get the current IP address | |
CURRENT_IP=$(curl -s ifconfig.co) | |
VALID_IP=$( [[ $CURRENT_IP =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]] && echo true || echo false ) | |
# set telegram infos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Modify next line to where your firefly-iii instance is installed to. | |
cd /var/www | |
#Remove old backup of firefly-iii | |
rm -r firefly-iii-old | |
#Backup current version of firefly-iii | |
cp -r firefly-iii firefly-iii-old |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# Based on | |
# https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS#google-domains | |
# https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS#bind9-ddns-using-nsupdate | |
# | |
# Forked from | |
# https://gist.github.com/atais/9ea6595072096ab8077f619bd3648da8 | |
### |