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 | |
# This script copies an index file to all of your site | |
# copy this file to the root of your website and pass it your index file you want prenset on all of your subdirectories | |
# IE: | |
# cp ~/indexify /srv/http/default | |
# cd /srv/http/default | |
# chmod +x ./indexify | |
# ./indexify ./index.php | |
# in this example you should see the output of -cp -v copying your /srv/http/default/index.php to all subdirectories |
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 | |
GET_IP_URL="https://api.ipify.org/" | |
UPDATE_SCRIPT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/update | |
LOGGER_SCRIPT=$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/log | |
source $( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )/config | |
HOST_RESULT="$(host $freenom_domain_name 80.80.80.80)" | |
DNS_IP=$(echo $HOST_RESULT | cut -d' ' -f 12) | |
CURR_IP="$(curl -s $GET_IP_URL)" |