blob: ac186011d2598d498fec91c0fe71d574d2ac4d0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
post_install() {
# Enable socket by default
systemctl --global enable gcr-ssh-agent.socket
cat <<END
>>> gcr contains /etc/security/limits.d/10-gcr.conf which sets the memlock limit
in order to allow GCR to lock private keys in memory. If you have configured
this limit differently before, please review your configuration.
END
}
post_upgrade() {
if (( $(vercmp $2 3.41.0-1) < 0)); then
systemctl --global enable gcr-ssh-agent.socket
fi
}
pre_remove() {
systemctl --global disable gcr-ssh-agent.socket
}
|