From 8102576e930a839540c0e8b2c9e18fdf37d30b24 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Sat, 16 Nov 2013 16:32:43 +0100 Subject: Notify about missing options/files/actions on dashboard --- apis/exec.inc.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apis') 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'); -- cgit v1.2.3-55-g7522