revert the change to the sed command in webmin (#1439)
Co-authored-by: Daniel Hansson <github@hanssonit.se>
This commit is contained in:
Родитель
fb02376924
Коммит
0a13411e3b
|
@ -66,7 +66,8 @@ print_text_in_color "$ICyan" "Configuring Webmin..."
|
|||
# redirect access on http to https
|
||||
check_command systemctl stop webmin
|
||||
## TODO: This will cause Webmin to redirect to the hostname 'nextcloud' and not the IP address if on LAN
|
||||
check_command sed -i "s|ssl_redirect=.*|ssl_redirect=1|g" /etc/webmin/miniserv.conf
|
||||
check_command sed -i '/^ssl=.*/a ssl_redirect=1' /etc/webmin/miniserv.conf
|
||||
check_command sed -i "/^port=.*/a host=$ADDRESS" /etc/webmin/miniserv.conf
|
||||
check_command systemctl start webmin
|
||||
|
||||
msg_box "Webmin is now installed and can be accessed from this address:
|
||||
|
|
Загрузка…
Ссылка в новой задаче