summarylogtreecommitdiffstats
path: root/betterlockscreen.install
blob: 3c6b99f98aaf50a2ea5e995b4822fecefe900cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_install() {
	if [[ $(pidof systemd) ]]; then
		_pkgname="betterlockscreen"
        _gsloc="/etc/systemd/system/$_pkgname.service"
        echo "Systemd service installed, to enable type:"
		echo 'sudo sed -i "$(cat '$_gsloc' | grep -ni user | cut -d : -f 1) s/=.*/=$(id -un)/" '$_gsloc
		echo "sudo systemctl enable $_pkgname"
	fi
}

post_upgrade() {
	post_install
}