Update the readme

This commit is contained in:
Bob Mottram 2016-11-16 10:51:04 +00:00
parent b59ab65795
commit b8cfaf23d0
1 changed files with 7 additions and 4 deletions

View File

@ -360,13 +360,16 @@ function install_radicale {
set_completion_param "radicale onion domain" "${RADICALE_ONION_HOSTNAME}"
if ! grep -q "Your RADICALE password is" /home/$MY_USERNAME/README; then
if ! grep -q "# Radicale" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
echo $'# RADICALE' >> /home/$MY_USERNAME/README
echo $"RADICALE onion domain: ${RADICALE_ONION_HOSTNAME}" >> /home/$MY_USERNAME/README
echo $"Your RADICALE password is: ${RADICALE_PASSWORD}" >> /home/$MY_USERNAME/README
echo $'# Radicale' >> /home/$MY_USERNAME/README
echo $"Radicale onion domain: ${RADICALE_ONION_HOSTNAME}" >> /home/$MY_USERNAME/README
echo $"Your Radicale password is: ${RADICALE_PASSWORD}" >> /home/$MY_USERNAME/README
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
chmod 600 /home/$MY_USERNAME/README
else
sed -i "s|Radicale onion domain.*|Radicale onion domain: ${RADICALE_ONION_HOSTNAME}|g" /home/$MY_USERNAME/README
sed -i "s|Your Radicale password is.*|Your Radicale password is: ${RADICALE_PASSWORD}|g" /home/$MY_USERNAME/README
fi
function_check configure_firewall_for_radicale