blob: 0c579a27ba4976a05459a9c2342b3c8705ddb2e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
post_install() {
if [ -d /var/lib/tuptime ]; then
chown --recursive _tuptime: /var/lib/tuptime
fi
echo ""
echo "tuptime has been installed and the required units"
echo "have been enabled. To start tuptime now, run"
echo " # systemctl start tuptime-cron.timer"
echo " # systemctl start tuptime.service"
echo ""
}
post_upgrade() {
if id tuptime > /dev/null 2>&1; then
usermod --login _tuptime tuptime
echo ""
echo "User tuptime has been renamed to _tuptime"
echo ""
fi
}
|