opensim-tools – Blame information for rev 8

Subversion Repositories:
Rev:
Rev Author Line No. Line
5 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
7 eva 9 find /var/log/ -type f -exec truncate --size 0 '{}' \;
5 eva 10  
7 eva 11 # clear backup files
12 find / -name *~ -exec rm -rf '{}' \;
5 eva 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';
7 eva 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  
8 eva 25 halt -p