- fixed function call in previous commit
| | |
| | | public function onRunJob() { |
| | | global $app, $conf; |
| | | |
| | | $letsencrypt = array_shift( explode("\n", $this->_exec('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt')) ); |
| | | $letsencrypt = array_shift( explode("\n", shell_exec('which letsencrypt certbot /root/.local/share/letsencrypt/bin/letsencrypt')) ); |
| | | if(is_executable($letsencrypt)) { |
| | | $version = trim(exec($letsencrypt . ' --version 2>/dev/null')); |
| | | if(preg_match('/^(\S+)\s+(\d+(\.\d+)+)$/', $version, $matches)) { |