diff --git a/bin/epm-sh-functions b/bin/epm-sh-functions index c10de83558803a4e092e1824674bd1c327bd3efb..0071a37024cfa9809b77314cbed40ce754e4a25b 100644 --- a/bin/epm-sh-functions +++ b/bin/epm-sh-functions @@ -690,11 +690,12 @@ set_distro_info() DISTRCONTROL="$($DISTRVENDOR -y)" [ -n "$BASEDISTRNAME" ] || BASEDISTRNAME=$($DISTRVENDOR -s) + [ -n "$TMPDIR" ] || TMPDIR="/tmp" # TODO: improve BIGTMPDIR conception # https://bugzilla.mozilla.org/show_bug.cgi?id=69938 # https://refspecs.linuxfoundation.org/FHS_3.0/fhs/ch05s15.html # https://geekpeach.net/ru/%D0%BA%D0%B0%D0%BA-systemd-tmpfiles-%D0%BE%D1%87%D0%B8%D1%89%D0%B0%D0%B5%D1%82-tmp-%D0%B8%D0%BB%D0%B8-var-tmp-%D0%B7%D0%B0%D0%BC%D0%B5%D0%BD%D0%B0-tmpwatch-%D0%B2-centos-rhel-7 - [ -n "$BIGTMPDIR" ] || [ -d "/var/tmp" ] && BIGTMPDIR="/var/tmp" || BIGTMPDIR="/tmp" + [ -n "$BIGTMPDIR" ] || [ -d "/var/tmp" ] && BIGTMPDIR="/var/tmp" || BIGTMPDIR="$TMPDIR" } # FIXME: detect if not recognized