summaryrefslogtreecommitdiffstats
path: root/apis
diff options
context:
space:
mode:
authorSimon Rettberg2013-11-16 16:32:43 +0100
committerSimon Rettberg2013-11-16 16:32:43 +0100
commit8102576e930a839540c0e8b2c9e18fdf37d30b24 (patch)
tree60248ead9b0221c38232ae1928f87595ae04cbf8 /apis
parentFixed two stupid messups (diff)
downloadslx-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')
-rw-r--r--apis/exec.inc.php2
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');