clockwerk-tools – Diff between revs 23 and 24
?pathlinks?
Rev 23 | Rev 24 | |||
---|---|---|---|---|
Line 103... | Line 103... | |||
103 | // ..and dump |
103 | // ..and dump |
|
104 | foreach($regions as $region) { |
104 | foreach($regions as $region) { |
|
105 | $_region = preg_replace('/\s/','_',$region); |
105 | $_region = preg_replace('/\s/','_',$region); |
|
106 | $REGION_FOLDER='/var/lib/oar/'.$_region; |
106 | $REGION_FOLDER='/var/lib/oar/'.$_region; |
|
107 | if(!is_dir($REGION_FOLDER)) mkdir($REGION_FOLDER); |
107 | if(!is_dir($REGION_FOLDER)) mkdir($REGION_FOLDER); |
|
108 | wasChown($REGION_FOLDER, 'opensim'); |
108 | wasChown($REGION_FOLDER, 'opensim', 'opensim'); |
|
109 | $req->admin_console_command('change region '.$region); |
109 | $req->admin_console_command('change region '.$region); |
|
110 | $req->admin_console_command('save oar /'.$REGION_FOLDER.'/'.$_region.'.oar'); |
110 | $req->admin_console_command('save oar /'.$REGION_FOLDER.'/'.$_region.'.oar'); |
|
111 | wasChown($REGION_FOLDER, 'www-data'); |
111 | wasChown($REGION_FOLDER, 'www-data', 'www-data'); |
|
112 | } |
112 | } |