summarylogtreecommitdiffstats
path: root/iblu-git.install
blob: 1d3f03aa9bc8b0622d79d4d5164f570536597480 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 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