Browse Source

removed old script

master
Pascal Gloor 5 years ago
parent
commit
4e01f1be85
1 changed files with 0 additions and 16 deletions
  1. 0
    16
      static/usr/local/bin/cleanup.sh

+ 0
- 16
static/usr/local/bin/cleanup.sh View File

@@ -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…
Cancel
Save