Development

resolve or flatten bash vars in string

This is the string FE_DOMAIN=${HOST_PREFIX}pl8it.com If I wanted to resolve this and output the result, you would think this would work this is what I get 9315{BASH_REMATCH[2]} so instead I used printenv printenv requires that you pass it the env without the “$”

Read More »

logrotate

Check to see if installed if not installed run check again if installed place a file inside of /etc/logrotate.d To verify if a particular log is indeed rotating or not and to check the last date and time of its rotation, check the /var/lib/logrotate/status file

Read More »