feat: podman unprivileged user shell profile
This commit is contained in:
parent
f7c5050417
commit
f9f3c1afe4
2 changed files with 19 additions and 1 deletions
16
.profile
Normal file
16
.profile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Set XDG_CONFIG_HOME dir to default
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
|
||||
# Init XDG_RUNTIME_DIR directory for current user
|
||||
UID=$(id -u)
|
||||
|
||||
if test -z "${XDG_RUNTIME_DIR}"; then
|
||||
export XDG_RUNTIME_DIR=/tmp/xdg/$UID-xdg-runtime-dir
|
||||
if ! test -d "${XDG_RUNTIME_DIR}"; then
|
||||
mkdir -p "${XDG_RUNTIME_DIR}"
|
||||
chmod 0700 "${XDG_RUNTIME_DIR}"
|
||||
fi
|
||||
fi
|
||||
|
||||
#Start user default runlevel
|
||||
#openrc -U default
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
# pihanepi
|
||||
|
||||
My own little slice of digital world, crafted to my whims
|
||||
My own little slice of digital world, crafted to my whims
|
||||
|
||||
.profile file to be used by podman unpriviledge user at the very least. Provides XDG spec variable initialization.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue