diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-02 16:54:27 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-06-02 16:54:27 -0700 |
commit | c5a3e80113f13884c797caac4212162430c9e659 (patch) | |
tree | fa1c13d93a3abc31e8b48922f9223021187e4c1d /ext/installfiles | |
parent | 806ea79f376afaa08829d3d564d29754aa646e7f (diff) | |
download | infinitytier-c5a3e80113f13884c797caac4212162430c9e659.tar.gz infinitytier-c5a3e80113f13884c797caac4212162430c9e659.zip |
Linux installer tweaks, and Mac updater tweak.
Diffstat (limited to 'ext/installfiles')
-rw-r--r-- | ext/installfiles/linux/install.tmpl.sh | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/ext/installfiles/linux/install.tmpl.sh b/ext/installfiles/linux/install.tmpl.sh index 8773a21c..24425cbb 100644 --- a/ext/installfiles/linux/install.tmpl.sh +++ b/ext/installfiles/linux/install.tmpl.sh @@ -6,6 +6,7 @@ shopt -s expand_aliases dryRun=0 echo "*** ZeroTier One install/update ***" +echo if [ "$UID" -ne 0 ]; then echo "Not running as root so doing dry run (no modifications to system)..." @@ -118,10 +119,12 @@ if [ -n "$SYSTEMDUNITDIR" -a -d "$SYSTEMDUNITDIR" ]; then rm -f /tmp/systemd_zerotier-one.service /tmp/init.d_zerotier-one systemctl enable zerotier-one.service - #if [ "$origVersion" != "$newVersion" ]; then - # echo 'Version has changed, starting...' - # systemctl restart zerotier-one.service - #fi + + echo + echo 'Done! Installed and service configured to start at system boot.' + echo + echo "To start now or restart the service if it's already running:" + echo ' sudo systemctl restart zerotier-one.service' else # SYSV INIT -- also covers upstart which supports SysVinit backward compatibility @@ -163,14 +166,11 @@ else fi fi - #if [ "$origVersion" != "$newVersion" ]; then - # echo 'Version has changed, starting...' - # if [ -f /sbin/service -o -f /usr/sbin/service ]; then - # service zerotier-one restart - # else - # /etc/init.d/zerotier-one restart - # fi - #fi + echo + echo 'Done! Installed and service configured to start at system boot.' + echo + echo "To start now or restart the service if it's already running:" + echo ' sudo service zerotier-one restart' fi exit 0 |