/lib/reset-spectacled-owl |
@@ -5,8 +5,47 @@ |
## rights of fair usage, the disclaimer and warranty conditions. ## |
########################################################################### |
|
# clear log files |
find /var/log/ -type f -exec truncate --size 0 '{}' \; |
# clear IPs |
sed -i "s/ExternalHostNameForLSL *=.*/ExternalHostNameForLSL = \"192.168.0.1\"/g" \ |
$DAEMON_DIR/OpenSim.ini; |
sed -i "s/ExternalHostName *=.*/ExternalHostName = 192.168.0.1/g" \ |
$REGION_DIR/Regions.ini; |
sed -i "s/HomeURI *=.*/HomeURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/Gatekeeper *=.*/Gatekeeper = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/GatekeeperURI *=.*/GatekeeperURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/SRV_HomeURI *=.*/SRV_HomeURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/SRV_InventoryServerURI *=.*/SRV_InventoryServerURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/SRV_AssetServerURI *=.*/SRV_AssetServerURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/SRV_ProfileServerURI *=.*/SRV_ProfileServerURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/SRV_GroupsServerURI *=.*/SRV_GroupsServerURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini |
sed -i "s/FriendsServerURI *=.*/FriendsServerURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/IMServerURI *=.*/IMServerURI = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/MapTileURL *=.*/MapTileURL = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/ExternalName *=.*/ExternalName = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/login *=.*/login = \"http:\/\/192.168.0.1:9000\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/gridname *=.*/gridname = \"SpectacledOwl\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/gridnick *=.*/gridnick = \"SpectacledOwl\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/welcome *=.*/welcome = \"http:\/\/192.168.0.1\/welcome\.php\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/register *=.*/register = \"http:\/\/192.168.0.1\/register\.php\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
sed -i "s/about *=.*/about = \"http:\/\/192.168.0.1\/about\.php\"/g" \ |
$CONFIG_DIR/StandaloneCommon.ini; |
|
# clear backup files |
find / -name *~ -exec rm -rf '{}' \; |
@@ -23,11 +62,6 @@ |
mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'drop database opensim'; |
mysql -u debian-sys-maint -pvu9VYfFIcb0qcRVC -e 'create database opensim'; |
|
dialog --msgbox "Please type in a new root password at the next prompt." 10 70 |
passwd root |
dialog --msgbox "Please type in a new opensim user password at the next prompt." 10 70 |
passwd opensim |
|
# clear history |
su root -c "history -c && rm -rf /root/.bash_history" |
su opensim -c "history -c && rm -rf /home/opensim/.bash_history" |