summarylogtreecommitdiffstats
path: root/docker.hook
blob: 80e5a1be23244c192e5d1208f6b6aee4c83005ab (plain)
1
2
3
4
5
6
7
8
9
10
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = docker

[Action]
Description = restarting docker
When = PostTransaction
Exec = /bin/sh -c "systemctl is-active docker.service || exit 0;systemctl daemon-reload && systemctl restart docker.service"