Tidying
This commit is contained in:
parent
dbe966bb90
commit
6cd292e51a
|
@ -92,7 +92,6 @@ function update_external_ip {
|
|||
echo "curr_ip=\$(nslookup . $EXTERNAL_IP_LOOKUP_URL | grep Address | tail -n 1 | awk -F ' ' '{print \$2}')" >> $ip_update_script
|
||||
echo 'if [[ "$curr_ip" != "$existing_ip" ]]; then' >> $ip_update_script
|
||||
echo " sed -i \"s|EXTERNAL_IPV4_ADDRESS=.*|EXTERNAL_IPV4_ADDRESS=\${curr_ip}|g\" $CONFIGURATION_FILE" >> $ip_update_script
|
||||
echo ' iptables-save > /etc/firewall.conf' >> $ip_update_script
|
||||
echo " echo \"\$(date)\" >> ~/${PROJECT_NAME}-external-ip-changes.txt" >> $ip_update_script
|
||||
echo 'fi' >> $ip_update_script
|
||||
|
||||
|
|
Loading…
Reference in New Issue