Commit def76bdd authored by ketominer's avatar ketominer
Browse files

logs

parent f31ab7fa
Pipeline #9 canceled with stages
......@@ -4,7 +4,7 @@ require_once('/etc/nodl/config.php');
require_once('easybitcoin.php');
require_once('easylnd.php');
openlog("nodl", LOG_PID | LOG_PERROR, LOG_LOCAL0);
openlog("nodl", LOG_PID, LOG_LOCAL0);
syslog(LOG_INFO, "Nodl batch starting...");
......@@ -40,6 +40,7 @@ $res = $db->query('SELECT name,value FROM config WHERE name LIKE \'%_status\'');
while($row = $res->fetch_assoc()) {
switch($row['value']) {
case '100':
syslog(LOG_INFO, "Triggering install for ".$row['name']);
exec('chmod +x /usr/share/nodl/install-'.str_replace('_status','',$row['name']).'.sh');
exec('/usr/share/nodl/install-'.str_replace('_status','',$row['name']).'.sh',$values,$return);
if($return == 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment