aboutsummarylogtreecommitdiffstats
path: root/sudodev.install
blob: a08c72b4ea0bacdf56a8cd3603ce82093e58ef12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
## arg 1:  the new package version
post_install () {
  systemctl daemon-reload
  systemctl enable sudodevd.service
  systemctl restart sudodevd.service
  echo "You should add current user to group sudodev, run:"
  echo -e "\tsudo gpasswd -a \$USER sudodev"
  echo "Then reboot to accept new group, run:"
  echo -e "\tsudo reboot"
}

## arg 1:  the new package version
## arg 2:  the old package version
post_upgrade () {
  systemctl daemon-reload
}

## arg 1:  the new package version
pre_remove () {
  systemctl disable sudodevd.service
  systemctl stop sudodevd.service
}

## arg 1:  the new package version
post_remove () {
  systemctl daemon-reload
}