This is a used on an EdgeRouter X with three WAN connections. Only one is ever active at a time. They are all DHCP. The BASH script cycles between the three WAN connections until a stable VPN is made.
Script below:
Empty
This is a used on an EdgeRouter X with three WAN connections. Only one is ever active at a time. They are all DHCP. The BASH script cycles between the three WAN connections until a stable VPN is made.
Script below:
I wanted a script to automate the copying of a live WordPress website to a "staging" site on the same machine. This was tested on Debian Jessie.
Before you begin:
In this case make sure the same database user has the appropriate permissions on both databases. And also note that the RELOAD privilege is needed to use the `mysqldump --lock-all-tables` option on the existing live database.
Script below:
Below is a script that checks the current external IP address, and if it has changed since last check, updates the pasv_address line in the vsftpd.conf file.
I'm using Debian Stretch. For dig you may need to install dnsutils like so:
apt-get install dnsutils
Create the shell script file: