(11-23-2018, 12:33 AM)Ron-e Wrote: isn't this the class that handles the command lines, with here an example?
the cpuraminfo module just uses:
Code:$mem = shell_exec("cat /proc/meminfo");
the zgodx module just uses:
Code:exec("/etc/zpanel/bin/zsudo service postfix stop", $output);
You are correct, but for some reason I can never get it to work. Basically it needs to run something like:
Code:
sudo certbot certonly --webroot -w /var/sentora/hostdata/[client]/public_html/domain_com -d domain.com -d www.domain.com
Code:
exec("/etc/sentora/bin/zsudo certbot certonly --webroot -w $hostdata_dir/$client/public_html/$domain_folder -d $domain -d www.$domain.com", $output);
Maybe I'll find some time this weekend to test it out again.