Update readme for hubzilla
This commit is contained in:
parent
672f74ae4e
commit
7e58a547a8
|
@ -9041,6 +9041,12 @@ function install_hubzilla {
|
||||||
chown -R www-data:www-data $HUBZILLA_PATH
|
chown -R www-data:www-data $HUBZILLA_PATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
HUBZILLA_ONION_HOSTNAME=
|
||||||
|
if [[ $ONION_ONLY != "no" ]]; then
|
||||||
|
HUBZILLA_ONION_HOSTNAME=$(add_onion_service hubzilla 80 ${HUBZILLA_ONION_PORT})
|
||||||
|
echo "Hubzilla onion domain:${HUBZILLA_ONION_HOSTNAME}" >> $COMPLETION_FILE
|
||||||
|
fi
|
||||||
|
|
||||||
get_mariadb_hubzilla_admin_password
|
get_mariadb_hubzilla_admin_password
|
||||||
if [ ! $HUBZILLA_ADMIN_PASSWORD ]; then
|
if [ ! $HUBZILLA_ADMIN_PASSWORD ]; then
|
||||||
if [ -f $IMAGE_PASSWORD_FILE ]; then
|
if [ -f $IMAGE_PASSWORD_FILE ]; then
|
||||||
|
@ -9051,7 +9057,12 @@ function install_hubzilla {
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
echo '' >> /home/$MY_USERNAME/README
|
||||||
echo 'Hubzilla' >> /home/$MY_USERNAME/README
|
echo 'Hubzilla' >> /home/$MY_USERNAME/README
|
||||||
echo '==========' >> /home/$MY_USERNAME/README
|
echo '========' >> /home/$MY_USERNAME/README
|
||||||
|
if [[ $ONION_ONLY == 'no' ]]; then
|
||||||
|
echo $"Open https://$HUBZILLA_DOMAIN_NAME and register a new user" >> /home/$MY_USERNAME/README
|
||||||
|
else
|
||||||
|
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
|
echo $"Your MariaDB Hubzilla admin password is: $HUBZILLA_ADMIN_PASSWORD" >> /home/$MY_USERNAME/README
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
|
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
|
||||||
chmod 600 /home/$MY_USERNAME/README
|
chmod 600 /home/$MY_USERNAME/README
|
||||||
|
@ -9067,18 +9078,6 @@ function install_hubzilla {
|
||||||
CURRENT_DDNS_DOMAIN=$HUBZILLA_DOMAIN_NAME
|
CURRENT_DDNS_DOMAIN=$HUBZILLA_DOMAIN_NAME
|
||||||
add_ddns_domain
|
add_ddns_domain
|
||||||
|
|
||||||
HUBZILLA_ONION_HOSTNAME=
|
|
||||||
if [[ $ONION_ONLY != "no" ]]; then
|
|
||||||
HUBZILLA_ONION_HOSTNAME=$(add_onion_service hubzilla 80 ${HUBZILLA_ONION_PORT})
|
|
||||||
if ! grep -q "Hubzilla onion domain" /home/$MY_USERNAME/README; then
|
|
||||||
echo "Hubzilla onion domain: ${HUBZILLA_ONION_HOSTNAME}" >> /home/$MY_USERNAME/README
|
|
||||||
echo '' >> /home/$MY_USERNAME/README
|
|
||||||
chown $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/README
|
|
||||||
chmod 600 /home/$MY_USERNAME/README
|
|
||||||
fi
|
|
||||||
echo "Hubzilla onion domain:${HUBZILLA_ONION_HOSTNAME}" >> $COMPLETION_FILE
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $ONION_ONLY == "no" ]]; then
|
if [[ $ONION_ONLY == "no" ]]; then
|
||||||
nginx_http_redirect $HUBZILLA_DOMAIN_NAME
|
nginx_http_redirect $HUBZILLA_DOMAIN_NAME
|
||||||
echo 'server {' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME
|
echo 'server {' >> /etc/nginx/sites-available/$HUBZILLA_DOMAIN_NAME
|
||||||
|
|
Loading…
Reference in New Issue