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
REQUIREMENTS: | |
- php-pear (install automatically php7.0-xml and php-xml) | |
sudo apt-get install php-pear | |
-php7.0-mbstring | |
sudo apt-get install php7.0-mbstring | |
-php7.0-dev | |
sudo apt-get install php7.0-dev | |
INSTALLATION: | |
1- cd /tmp/xxxxxx (e.g: cd /tmp/pear/download) |
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 | |
# CHANGE THESE | |
auth_email="[email protected]" | |
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # found in cloudflare account settings | |
zone_name="example.com" | |
record_name="www.example.com" | |
# MAYBE CHANGE THESE | |
ip=$(curl -s http://ipv4.icanhazip.com) |