base-files: improve previous.
This commit is contained in:
parent
dc0aa047ce
commit
fc23959d0e
2 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
||||||
# Sets and creates XDG_RUNTIME_DIR.
|
# Sets and creates XDG_RUNTIME_DIR.
|
||||||
|
|
||||||
if test -z "${XDG_RUNTIME_DIR}"; then
|
if [ -z "${XDG_RUNTIME_DIR}" ]; then
|
||||||
export XDG_RUNTIME_DIR=/tmp/${UID:-$(id -u)}-runtime-dir
|
export XDG_RUNTIME_DIR=/tmp/${UID:-$(id -u)}-runtime-dir
|
||||||
if test -w /tmp -a ! test -d "${XDG_RUNTIME_DIR}"; then
|
if [ -w /tmp ] && [ ! -d "${XDG_RUNTIME_DIR}"; then
|
||||||
mkdir -p "${XDG_RUNTIME_DIR}" >/dev/null 2>&1
|
mkdir -p "${XDG_RUNTIME_DIR}" >/dev/null 2>&1
|
||||||
chmod 0700 "${XDG_RUNTIME_DIR}" >/dev/null 2>&1
|
chmod 0700 "${XDG_RUNTIME_DIR}" >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'base-files'
|
# Template file for 'base-files'
|
||||||
pkgname=base-files
|
pkgname=base-files
|
||||||
version=0.135
|
version=0.136
|
||||||
revision=1
|
revision=1
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
depends="xbps-triggers"
|
depends="xbps-triggers"
|
||||||
|
|
Loading…
Reference in a new issue