diff options
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'); |