nc-init: update echo at end when init done. (#738)

This commit is contained in:
Oliver V 2018-12-17 02:35:00 +01:00 committed by nachoparker
parent d75ecc2c2d
commit 9766dc2cc3

View File

@ -53,9 +53,19 @@ install_script ncp.sh
activate_script etc/ncp-config.d/nc-init.sh
popd
IFACE="$( ip r | grep "default via" | awk '{ print $5 }' | head -1 )"
IP="$( ip a show dev "$IFACE" | grep global | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 )"
echo "Done.
Type 'sudo ncp-config' to configure NCP, or access ncp-web on https://<this_ip>:4443
First: Visit https://$IP/ https://nextcloudpi.local/ (also https://nextcloudpi.lan/ or https://nextcloudpi/ on windows and mac)
to activate your instance of NC, and save the auto generated passwords. You may review or reset them
anytime by using nc-admin and nc-passwd.
Second: Type 'sudo ncp-config' to further configure NCP, or access ncp-web on https://$IP:4443/
Note: You will have to add an exception, to bypass your browser warning when you
first load the activation and :4443 pages. You can run letsencrypt to get rid of
the warning if you have a (sub)domain available.
"
exit 0