Avoid multiple hubzilla updates to the readme

This commit is contained in:
Bob Mottram 2016-11-12 14:18:11 +00:00
parent 147fed04c2
commit dba18eb7e6
1 changed files with 10 additions and 8 deletions

View File

@ -186,6 +186,7 @@ function hubzilla_create_database {
else
HUBZILLA_ADMIN_PASSWORD="$(create_password ${MINIMUM_PASSWORD_LENGTH})"
fi
if ! grep "# Hubzilla" /home/$MY_USERNAME/README; then
echo '' >> /home/$MY_USERNAME/README
echo '' >> /home/$MY_USERNAME/README
echo '# Hubzilla' >> /home/$MY_USERNAME/README
@ -195,6 +196,7 @@ function hubzilla_create_database {
echo $"Open http://$HUBZILLA_ONION_HOSTNAME and register a new user" >> /home/$MY_USERNAME/README
fi
echo $"Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD" >> /home/$MY_USERNAME/README
fi
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
chmod 600 /home/$MY_USERNAME/README
fi