opensim-tools – Blame information for rev 38
?pathlinks?
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 | |||
38 | eva | 26 | dialog --msgbox "Please type in a new root password at the next prompt." 10 70 |
27 | passwd root |
||
28 | dialog --msgbox "Please type in a new opensim user password at the next prompt." 10 70 |
||
29 | passwd opensim |
||
30 | |||
21 | eva | 31 | # clear history |
36 | eva | 32 | su root -c "history -c && rm -rf /root/.bash_history" |
33 | su opensim -c "history -c && rm -rf /home/opensim/.bash_history" |
||
21 | eva | 34 | |
35 | halt -p |