Update serv00keep.sh

This commit is contained in:
甬哥侃侃侃ygkkk
2025-01-10 21:27:48 +08:00
committed by GitHub
parent 3c4b40e788
commit 3125ee124c
+1 -1
View File
@@ -25,7 +25,7 @@ if [[ "$reset" =~ ^[Yy]$ ]]; then
crontab -l | grep -v "serv00keep" >rmcron crontab -l | grep -v "serv00keep" >rmcron
crontab rmcron >/dev/null 2>&1 crontab rmcron >/dev/null 2>&1
rm rmcron rm rmcron
ps aux | grep $(whoami) | grep -v "sshd\|bash\|grep" | awk '{print $2}' | xargs -r kill -9 > /dev/null 2>&1 bash -c 'ps aux | grep $(whoami) | grep -v "sshd\|bash\|grep" | awk "{print \$2}" | xargs -r kill -9 >/dev/null 2>&1' >/dev/null 2>&1
find ~ -type f -exec chmod 644 {} \; 2>/dev/null find ~ -type f -exec chmod 644 {} \; 2>/dev/null
find ~ -type d -exec chmod 755 {} \; 2>/dev/null find ~ -type d -exec chmod 755 {} \; 2>/dev/null
find ~ -type f -exec rm -f {} \; 2>/dev/null find ~ -type f -exec rm -f {} \; 2>/dev/null