We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a82296d commit 733fe63Copy full SHA for 733fe63
shutup_tips.sh
@@ -5,7 +5,7 @@ sudo tee /etc/apt/apt.conf.d/99disable-man-db<<EOF
5
DPkg::Post-Invoke { "test -x /usr/bin/mandb && /usr/bin/mandb --no-purge"; };
6
EOF
7
echo "➡️ 2、禁用 needrestart 的扫描"
8
-sudo echo "\$nrconf{restart} = 'none';" >> /etc/needrestart/needrestart.conf
+echo "\$nrconf{restart} = 'none';" | sudo tee -a /etc/needrestart/needrestart.conf
9
echo "➡️ 3. 禁用内核镜像扫描"
10
sudo tee /etc/apt/apt.conf.d/99disable-kernel-scanning<<EOF
11
DPkg::Post-Invoke { "test -x /usr/sbin/update-initramfs && /usr/sbin/update-initramfs -u"; };
0 commit comments