Files
eh-downloader/docker_entrypoint.sh

12 lines
305 B
Bash
Executable File

#!/bin/bash
getent passwd $(id -u) > /dev/null 2>&1
if [ $? -ne 0 ]; then
getent group $(id -g)
if [ $? -ne 0 ]; then
su root -c "groupadd -g $(id -g) eh"
fi
su root -c "useradd -g $(id -g) -m -s /bin/bash -u $(id -u) eh"
su root -c "chown -R eh /deno-dir"
fi
deno task server