diff options
author | Jonathan Bauer | 2019-04-10 12:50:15 +0200 |
---|---|---|
committer | Jonathan Bauer | 2019-04-10 12:50:15 +0200 |
commit | 00fa049eb1170db2856d57f47b05fa367631bc20 (patch) | |
tree | c7a096d10e9ca3e1670ac216797bc87ddbb6e2ac /core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env | |
parent | [xorg] quickfix for missing libcapnp-0.6.1 (diff) | |
download | mltk-00fa049eb1170db2856d57f47b05fa367631bc20.tar.gz mltk-00fa049eb1170db2856d57f47b05fa367631bc20.tar.xz mltk-00fa049eb1170db2856d57f47b05fa367631bc20.zip |
[run-virt] noop if /opt/openslx/config is missing
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env')
-rwxr-xr-x | core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env b/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env index b3d9eb73..e5201396 100755 --- a/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env +++ b/core/modules/run-virt/data/opt/openslx/scripts/systemd-run_virt_env @@ -26,6 +26,7 @@ export PATH=$PATH:/opt/openslx/bin:/opt/openslx/sbin # source config file with vars (e.g. ipaddr, macaddr, HOSTNAME) +[ -s /opt/openslx/config ] || exit 0 . /opt/openslx/config # from plugins/vmchooser/XX_vmchooser.sh |