瀏覽代碼

removed old script

master
Pascal Gloor 5 年之前
父節點
當前提交
4e01f1be85
共有 1 個文件被更改,包括 0 次插入16 次删除
  1. 0
    16
      static/usr/local/bin/cleanup.sh

+ 0
- 16
static/usr/local/bin/cleanup.sh 查看文件

@@ -1,16 +0,0 @@
#!/bin/bash


systemctl stop rsyslog

find /var/log -type f -print -delete
#find /home/user -mindepth 1 -depth -print -delete
find /root -mindepth 1 -depth -print -delete

for user in /root /home/user
do
FILE=${user}/.bash_history
echo "rm/ln/dev-null ${FILE}"
rm -f ${FILE}
ln -s /dev/null ${FILE}
done

Loading…
取消
儲存