File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change 4949 # Debian/Ubuntu
5050 hostnamectl set-hostname " $domain "
5151 echo " $domain " > /etc/hostname
52+ fi
5253
53- # Update Roundcube password plugin configuration
54- if [ -d /etc/roundcube/ ]; then
55- sed -i " /password_hestia_host/c\$ rcmail_config['password_hestia_host'] = '$domain ';" /etc/roundcube/plugins/password/config.inc.php
56- fi
57- if [ -d /etc/rainloop/ ]; then
58- sed -i " /hestia_host/c\hestia_host = \" $domain \" " /etc/rainloop/data/_data_/_default_/configs/plugin-hestia-change-password.ini
59- fi
54+ # Update Roundcube password plugin configuration
55+ if [ -d /etc/roundcube/ ]; then
56+ sed -i " /password_hestia_host/c\$ rcmail_config['password_hestia_host'] = '$domain ';" /etc/roundcube/plugins/password/config.inc.php
6057fi
58+ if [ -d /etc/rainloop/ ]; then
59+ sed -i " /hestia_host/c\hestia_host = \" $domain \" " /etc/rainloop/data/_data_/_default_/configs/plugin-hestia-change-password.ini
60+ fi
61+
62+ if [ -f /etc/hosts ]; then
63+ if ! cat /etc/hosts | grep $domain > /dev/null ; then
64+ echo " 127.0.0.1 $domain " >> /etc/hosts
65+ fi
66+ fi
6167
6268# ----------------------------------------------------------#
6369# Hestia #
You can’t perform that action at this time.
0 commit comments