opensim-tools – Blame information for rev 37

Subversion Repositories:
Rev:
Rev Author Line No. Line
21 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  
37 eva 17 # clear iar/oar
18 if [ -d /var/lib/iar/ ]; then
19 rm -rf /var/lib/iar/*
20 fi
21  
21 eva 22 # dump database
23 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'drop database opensim';
24 mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'create database opensim';
25  
26 # clear history
36 eva 27 su root -c "history -c && rm -rf /root/.bash_history"
28 su opensim -c "history -c && rm -rf /home/opensim/.bash_history"
21 eva 29  
30 halt -p