diff options
author | Simon Rettberg | 2013-11-16 16:32:43 +0100 |
---|---|---|
committer | Simon Rettberg | 2013-11-16 16:32:43 +0100 |
commit | 8102576e930a839540c0e8b2c9e18fdf37d30b24 (patch) | |
tree | 60248ead9b0221c38232ae1928f87595ae04cbf8 /apis/exec.inc.php | |
parent | Fixed two stupid messups (diff) | |
download | slx-admin-8102576e930a839540c0e8b2c9e18fdf37d30b24.tar.gz slx-admin-8102576e930a839540c0e8b2c9e18fdf37d30b24.tar.xz slx-admin-8102576e930a839540c0e8b2c9e18fdf37d30b24.zip |
Notify about missing options/files/actions on dashboard
Diffstat (limited to 'apis/exec.inc.php')
-rw-r--r-- | apis/exec.inc.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apis/exec.inc.php b/apis/exec.inc.php index 94a94a00..749ca86a 100644 --- a/apis/exec.inc.php +++ b/apis/exec.inc.php @@ -57,6 +57,8 @@ case 'ipxe': 'DEFAULT' => 'openslx' )); if (false === file_put_contents(CONFIG_TFTP_DIR . '/pxelinux.cfg/default', $conf)) die('Error writing PXE Menu'); + Database::exec("INSERT IGNORE INTO setting_global (setting, value) VALUES ('SLX_VM_NFS', :value)", array(':value' => "$ip:/srv/openslx/nfs")); + Database::exec("UPDATE setting_global SET value = :value WHERE setting = 'SLX_VM_NFS' AND value LIKE '%:/srv/openslx/nfs' LIMIT 1", array(':value' => "$ip:/srv/openslx/nfs")); break; default: die('Invalid exec type'); |