User Tools

Site Tools


home:webserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
home:webserver [2019/06/12 21:39]
admin
home:webserver [2019/06/12 22:12] (current)
admin
Line 28: Line 28:
 oldip=`cat $old_ip_file` oldip=`cat $old_ip_file`
 echo "​$oldip"​ echo "​$oldip"​
-if [ "​${myip}" ​== "​${oldip}"​ ]+# Why not "​=="​ ??? Different behavior in cron vs interactive shell >.< 
 +# https://​serverfault.com/​questions/​734202/​bash-if-statment-unexpected-behavior-in-crontab-job 
 +if [ "​${myip}"​ = "​${oldip}"​ ]
 then then
  echo "They match!"​  echo "They match!"​
home/webserver.txt · Last modified: 2019/06/12 22:12 by admin