Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver V <ovpc@users.noreply.github.com>2018-12-17 04:35:00 +0300
committernachoparker <nacho@ownyourbits.com>2018-12-17 04:35:00 +0300
commit9766dc2cc38a4e0c9a8af899f0968275d3abc8d8 (patch)
tree7993816ee7cf890fd5db379c94d09f298e694a33 /install.sh
parentd75ecc2c2d1e0de61a8c98f70c8985dbcdf7af16 (diff)
nc-init: update echo at end when init done. (#738)v0.67.8
Diffstat (limited to 'install.sh')
-rw-r--r--install.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 8c3c78e7..45cca848 100644
--- a/install.sh
+++ b/install.sh
@@ -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