opensim-tools – Blame information for rev 20

Subversion Repositories:
Rev:
Rev Author Line No. Line
15 eva 1 #!/bin/bash
2 ###########################################################################
3 ## Copyright (C) Wizardry and Steamworks 2013 - License: GNU GPLv3 ##
4 ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ##
5 ## rights of fair usage, the disclaimer and warranty conditions. ##
6 ###########################################################################
7  
8 # clear log files
9 find /var/log/ -type f -exec truncate --size 0 '{}' \;
10  
11 # clear backup files
12 find / -name *~ -exec rm -rf '{}' \;
13  
14 # clear svn
15 su root -c "rm -rf ~/.subversion"
16  
17 # dump database
18 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'drop database opensim';
19 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'create database opensim';
20  
21 # clear history
22 su root -c "history -c && rm -rf ~/.bash_history"
23 su opensim -c "history -c && rm -rf ~/.bash_history"
24  
25 halt -p