opensim-tools – Blame information for rev

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
6 eva 9 find /var/log/ -name \*.log -exec echo "" > '{}' \;
10 find /var/log/ -name \*.gz -exec echo "" > '{}' \;
5 eva 11  
12 # clear history
13 su root -c "history -c && rm -rf ~/.bash_history"
14 su opensim -c "history -c && rm -rf ~/.bash_history"
15  
16 # clear svn
17 su root -c "rm -rf ~/.subversion"
18  
19 # dump database
20 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'drop database opensim';
21 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'create database opensim';
22 halt -p