diff options
Diffstat (limited to 'core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/init_core.inc')
-rw-r--r-- | core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/init_core.inc | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/init_core.inc b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/init_core.inc index cc204d53..79b2ddd1 100644 --- a/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/init_core.inc +++ b/core/modules/run-virt/data/opt/openslx/vmchooser/run-virt-includes/init_core.inc @@ -3,24 +3,6 @@ # Include: Sets core variables and directories # ################################################ -# Check if the path to the logfile was given externally (by the wrapper) -unset WRAPPED -if notempty LOGFILE; then - if [ ! -w "${LOGFILE}" ]; then - # given logfile is not writeable or non-existant - # so handle it ourself (so do not set WRAPPED) - rm -f "${LOGFILE}" - unset LOGFILE - else - # given logfile was ok, mark that we are wrapped - # (for cleanexit to not slxlog the log since - # the wrapper is handling that for us) - declare -rg WRAPPED=aye - fi -fi -isset LOGFILE || declare -rg LOGFILE="/var/log/openslx/run-virt.${USER}.$$.log" -ln -sf "$LOGFILE" "/var/log/openslx/run-virt.latest.log" - # Create temporary directory for current invocation if check_dep mkdir && ! mkdir -p "$TMPDIR" "$CONFDIR"; then writelog "Could not create temporary directories for session" |