summaryrefslogblamecommitdiffstats
path: root/modules-available/rebootcontrol/api.inc.php
blob: b3e9e976b5d11ae0e9d178c1dcda60da17ff2234 (plain) (tree)
1
2
3
4
5
6
7
8
     


                                                                 



                                                       



                          
<?php

if (Request::any('action') === 'rebuild' && isLocalExecution()) {
	if (Module::isAvailable('sysconfig')) {
		SSHKey::getPrivateKey($regen);
		if (!$regen) {
			ConfigTgz::rebuildAllConfigs();
		}
		echo "OK";
	}
	exit(0);
}