summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsbiego2019-04-01 01:48:17 +0200
committersbiego2019-04-01 01:48:17 +0200
commit279254a750c42e1cef82f62ac257941a005544f7 (patch)
treed44d1261ca8d1f9438057e509e752aea3656f701
parent22b5b6c4ce6fd503e4bb5d32193c5cf1409bcef2 (diff)
downloadaur-279254a750c42e1cef82f62ac257941a005544f7.tar.gz
try prompt install
-rw-r--r--iblu-git.install18
1 files changed, 17 insertions, 1 deletions
diff --git a/iblu-git.install b/iblu-git.install
index ea6d14ff3074..1d3f03aa9bc8 100644
--- a/iblu-git.install
+++ b/iblu-git.install
@@ -1,3 +1,19 @@
post_install() {
- echo "\nIBLU is ALMOST INSTALLED! \nPlease run the following commands:\n\n\t # iblu UNIT > /usr/lib/systemd/system/iblu.service \t#creates the systemd unit file \n\t # systemctl enable iblu.service \t\t\t\t#enabling the service\n"
+ # echo "\nIBLU is ALMOST INSTALLED! \nPlease run the following commands:\n\n\t # iblu UNIT > /usr/lib/systemd/system/iblu.service \t#creates the systemd unit file \n\t # systemctl start iblu.service \t\t\t\t#starting the service\n\t # systemctl enable iblu.service \t\t\t\t#enabling the service\n"
+
+ echo "Almost done!Now you just need to create a systemd service, start and enable it..."
+ read -p "Do you want to do it now (y/n)?" choice
+ case "$choice" in
+ y|Y ) iblu UNIT > /usr/lib/systemd/system/iblu.service; systemctl start iblu.service; systemctl enable iblu.service;;
+ n|N ) echo "You can always to it running the following commands:\n\n\t # iblu UNIT > /usr/lib/systemd/system/iblu.service \t#creates the systemd unit file \n\t # systemctl start iblu.service \t\t\t\t#starting the service\n\t # systemctl enable iblu.service \t\t\t\t#enabling the service\n";;
+ * ) echo "invalid";;
+ esac
+
}
+
+### UNCOMMENT the following lines to CREATE and ENABLE the systemd unit
+# it's MANDATORY execute those to run iblu
+
+# iblu UNIT > /usr/lib/systemd/system/iblu.service; #creates the systemd unit file
+# systemctl start iblu.service; #enabling the service
+# systemctl enable iblu.service; #enabling the service \ No newline at end of file