Skip to content

Commit

Permalink
nc-init: update echo at end when init done. (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovpc authored and nachoparker committed Dec 17, 2018
1 parent d75ecc2 commit 9766dc2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9766dc2

Please sign in to comment.