mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
12 lines
351 B
Bash
Executable File
12 lines
351 B
Bash
Executable File
#!/bin/sh
|
|
set -x
|
|
|
|
# ensure $HOME exists and is accessible by group 0 (we don't know what the runtime UID will be)
|
|
echo "${USER_NAME}:x:${USER_UID}:0:${USER_NAME} user:${HOME}:/sbin/nologin" >> /etc/passwd
|
|
mkdir -p "${HOME}"
|
|
chown "${USER_UID}:0" "${HOME}"
|
|
chmod ug+rwx "${HOME}"
|
|
|
|
# no need for this script to remain in the image after running
|
|
rm "$0"
|