aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stendahl <jakob.stendahl@outlook.com>2018-11-25 18:22:21 +0100
committerJakob Stendahl <jakob.stendahl@outlook.com>2018-11-25 18:22:21 +0100
commit244c692acada2604876475cfb4deea6da2f1382a (patch)
tree6f389252e2b7417dbfc8533bdbfdf862c065e388
parent776f400f021ca2be81ac565b718e89afc69f2609 (diff)
downloadLuxcena-Neo-244c692acada2604876475cfb4deea6da2f1382a.tar.gz
Luxcena-Neo-244c692acada2604876475cfb4deea6da2f1382a.zip
:construction: Installer now installs cli
-rwxr-xr-xbin/install.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/install.sh b/bin/install.sh
index 2ccb7e0..005f073 100755
--- a/bin/install.sh
+++ b/bin/install.sh
@@ -134,6 +134,14 @@ export NODE_ENV=production &>> $LOG || die
runuser -l $username -c 'npm --prefix ~/install/src install ~/install/src --only=production' &>> $LOG || die # This is probably a bit overkill to have --only=... but better safe than sorry?
tput rc; tput ed
+# fourth we copy the cli to our bin folder
+tput setaf 8
+printf '%s\n' " - Adding cli-script..."
+tput sgr0
+cp bin/luxcena-neo-cli.sh /usr/bin/luxcena-neo-cli.sh &>> $LOG || die
+ln -sf /usr/bin/luxcena-neo-cli.sh /usr/bin/luxcena-neo &>> $LOG || die
+tput rc; tput ed
+
# Fifth we add the service files
tput setaf 8
printf '%s\n' " - Adding service-file to systemd..."
@@ -143,3 +151,4 @@ systemctl daemon-reload &>> $LOG || die
# Installation is done!
printf '\n\e[5m%s\e[0m\n' "🎉Luxcena-Neo is now installed🎉"
+printf 'You can now delete this folder'