mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
12 lines
305 B
Bash
Executable File
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
|