Skip to content

Commit

Permalink
Update z2m.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Apr 23, 2024
1 parent 3a953a8 commit 32ea1c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/class/z2m.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,10 @@ public static function deamon_start() {
}
exec(system::getCmdSudo() .' chown www-data -R "/root/.npm"');
exec(system::getCmdSudo() .' chmod 777 -R "/root/.npm"');
exec(system::getCmdSudo() .' chown www-data -R "'.log::getPathToLog('z2md').'"');
exec(system::getCmdSudo() .' chmod 775 -R "'.log::getPathToLog('z2md').'"');
if(file_exists(log::getPathToLog('z2md')){
exec(system::getCmdSudo() .' chown www-data -R "'.log::getPathToLog('z2md').'"');
exec(system::getCmdSudo() .' chmod 775 -R "'.log::getPathToLog('z2md').'"');
}
$z2m_path = realpath(dirname(__FILE__) . '/../../resources/zigbee2mqtt');
$cmd = '';
$cmd .= 'ZIGBEE2MQTT_DATA=' . $data_path;
Expand Down

0 comments on commit 32ea1c4

Please sign in to comment.