opensim-tools – Diff between revs 6 and 7

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 6 Rev 7
Line 4... Line 4...
4 ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## 4 ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ##
5 ## rights of fair usage, the disclaimer and warranty conditions. ## 5 ## rights of fair usage, the disclaimer and warranty conditions. ##
6 ########################################################################### 6 ###########################################################################
Line 7... Line 7...
7   7  
8 # clear log files -  
9 find /var/log/ -name \*.log -exec echo "" > '{}' \; 8 # clear log files
Line 10... Line 9...
10 find /var/log/ -name \*.gz -exec echo "" > '{}' \; 9 find /var/log/ -type f -exec truncate --size 0 '{}' \;
11   10  
12 # clear history -  
Line 13... Line 11...
13 su root -c "history -c && rm -rf ~/.bash_history" 11 # clear backup files
14 su opensim -c "history -c && rm -rf ~/.bash_history" 12 find / -name *~ -exec rm -rf '{}' \;
Line 15... Line 13...
15   13  
16 # clear svn 14 # clear svn
17 su root -c "rm -rf ~/.subversion" 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  
18   21 # clear history