mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
masked gnupg services
This commit is contained in:
parent
b4d27ab1a9
commit
ba613928c7
12
kvmd.install
12
kvmd.install
@ -67,10 +67,22 @@ post_upgrade() {
|
||||
[ ! -f /etc/pam.d/system-auth ] || sed -i -e '/\<pam_systemd_home\.so\>/ s/^#*/#/' /etc/pam.d/system-auth
|
||||
[ -e /etc/systemd/network/99-default.link ] || ln -s /dev/null /etc/systemd/network/99-default.link
|
||||
fi
|
||||
|
||||
if [[ "$(vercmp "$2" 3.317)" -lt 0 ]]; then
|
||||
[ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=i2c-rtc,pcf8563$/dtoverlay=i2c-rtc,pcf8563,wakeup-source/g' /boot/config.txt
|
||||
fi
|
||||
|
||||
if [[ "$(vercmp "$2" 3.320)" -lt 0 ]]; then
|
||||
# https://github.com/pikvm/pikvm/issues/1245
|
||||
systemctl mask \
|
||||
dirmngr@etc-pacman.d-gnupg.socket \
|
||||
gpg-agent-browser@etc-pacman.d-gnupg.socket \
|
||||
gpg-agent-extra@etc-pacman.d-gnupg.socket \
|
||||
gpg-agent-ssh@etc-pacman.d-gnupg.socket \
|
||||
gpg-agent@etc-pacman.d-gnupg.socket \
|
||||
keyboxd@etc-pacman.d-gnupg.socket
|
||||
fi
|
||||
|
||||
# Some update deletes /etc/motd, WTF
|
||||
# shellcheck disable=SC2015,SC2166
|
||||
[ ! -f /etc/motd -a -f /etc/motd.pacsave ] && mv /etc/motd.pacsave /etc/motd || true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user