Skip to content

Commit 733fe63

Browse files
author
Administrator
committed
权限提升
1 parent a82296d commit 733fe63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shutup_tips.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ sudo tee /etc/apt/apt.conf.d/99disable-man-db<<EOF
55
DPkg::Post-Invoke { "test -x /usr/bin/mandb && /usr/bin/mandb --no-purge"; };
66
EOF
77
echo "➡️ 2、禁用 needrestart 的扫描"
8-
sudo echo "\$nrconf{restart} = 'none';" >> /etc/needrestart/needrestart.conf
8+
echo "\$nrconf{restart} = 'none';" | sudo tee -a /etc/needrestart/needrestart.conf
99
echo "➡️ 3. 禁用内核镜像扫描"
1010
sudo tee /etc/apt/apt.conf.d/99disable-kernel-scanning<<EOF
1111
DPkg::Post-Invoke { "test -x /usr/sbin/update-initramfs && /usr/sbin/update-initramfs -u"; };

0 commit comments

Comments
 (0)