12 lines
514 B
Plaintext
Executable File
12 lines
514 B
Plaintext
Executable File
#!/command/with-contenv bash
|
|
|
|
# setting umask to 0002 makes copied files/folders writable by group
|
|
# this is needed to run the container as an arbitrary UID
|
|
umask 0002
|
|
|
|
# the home directory is usually a PVC
|
|
# we need to copy the contents of $HOME_TMP that we populated during the build
|
|
# NOTE: -n prevents overwriting existing files
|
|
# NOTE: -T ensures that the CONTENTS of $HOME_TMP are copied, and not the directory itself
|
|
echo "INFO: Copying contents of '$HOME_TMP' to '$HOME'..."
|
|
cp -n -r -T "$HOME_TMP" "$HOME" |