mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-06-06 05:38:44 +08:00
fix: Set ownership for deno-dir in Docker entrypoint script
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"lock": false,
|
||||
"importMap": "./import_map.json",
|
||||
"tasks": {
|
||||
"cache": "deno cache main.ts server-dev.ts",
|
||||
"cache": "deno cache main.ts server-dev.ts server-run.ts",
|
||||
"server-dev": "deno run -A \"--watch=static/*.css,static/*.ts,static/*/,routes/,translation/\" server-dev.ts",
|
||||
"server": "deno run -A server-run.ts",
|
||||
"test": "deno test --allow-read --allow-net --allow-write --allow-ffi --allow-run=tasklist.exe --allow-env",
|
||||
|
||||
@@ -6,5 +6,6 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user