diff options
author | Simon Rettberg | 2017-11-03 17:49:58 +0100 |
---|---|---|
committer | Simon Rettberg | 2017-11-03 17:49:58 +0100 |
commit | 4aad3f3e894a061ee94f5386dd9256051491fa4a (patch) | |
tree | 030b40ac1c01fec0717cf0b16b173db33f43e38a /modules-available/rebootcontrol/api.inc.php | |
parent | [inc/event] Don't try to start DozmodLauncher task - doesn't exist (diff) | |
download | slx-admin-4aad3f3e894a061ee94f5386dd9256051491fa4a.tar.gz slx-admin-4aad3f3e894a061ee94f5386dd9256051491fa4a.tar.xz slx-admin-4aad3f3e894a061ee94f5386dd9256051491fa4a.zip |
[rebootcontrol] Conditional rebuild of config.tgz, proper permissions for authorized_keys
Diffstat (limited to 'modules-available/rebootcontrol/api.inc.php')
-rw-r--r-- | modules-available/rebootcontrol/api.inc.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules-available/rebootcontrol/api.inc.php b/modules-available/rebootcontrol/api.inc.php index dad25375..6ebc8399 100644 --- a/modules-available/rebootcontrol/api.inc.php +++ b/modules-available/rebootcontrol/api.inc.php @@ -2,8 +2,10 @@ if (Request::any('action') === 'rebuild' && isLocalExecution()) { if (Module::isAvailable('sysconfig')) { - SSHKey::getPublicKey(); - ConfigTgz::rebuildAllConfigs(); + SSHKey::getPrivateKey($regen); + if (!$regen) { + ConfigTgz::rebuildAllConfigs(); + } echo "OK"; } exit(0); |