clockwerk-tools
/lib/fs/etc/cron.daily/oardumper |
@@ -105,9 +105,9 @@ |
$_region = preg_replace('/\s/','_',$region); |
$REGION_FOLDER='/var/lib/oar/'.$_region; |
if(!is_dir($REGION_FOLDER)) mkdir($REGION_FOLDER); |
wasChown($REGION_FOLDER, 'opensim'); |
wasChown($REGION_FOLDER, 'opensim', 'opensim'); |
$req->admin_console_command('change region '.$region); |
$req->admin_console_command('save oar /'.$REGION_FOLDER.'/'.$_region.'.oar'); |
wasChown($REGION_FOLDER, 'www-data'); |
wasChown($REGION_FOLDER, 'www-data', 'www-data'); |
} |
|