|
@@ -508,7 +508,7 @@ fi
|
|
|
$replace = array($layer['ID'],$destFolderPath,$layer['FILE_NAME']);
|
|
$replace = array($layer['ID'],$destFolderPath,$layer['FILE_NAME']);
|
|
|
$bash = str_replace($search,$replace,$bashSchema);
|
|
$bash = str_replace($search,$replace,$bashSchema);
|
|
|
file_put_contents('/tmp/generate_wms-'.$layer['ID'].'.sh',$bash);
|
|
file_put_contents('/tmp/generate_wms-'.$layer['ID'].'.sh',$bash);
|
|
|
- shell_exec('nohup /bin/sh /tmp/generate_wms-'.$layer['ID'].'.sh > /tmp/generate_wms-'.$layer['ID'].'.log 2>&1 & echo $!');
|
|
|
|
|
|
|
+ shell_exec('su - root -c "nohup /bin/sh /tmp/generate_wms-'.$layer['ID'].'.sh >> /tmp/generate_wms-'.$layer['ID'].'.log"');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|