2358
This commit is contained in:
1 parent
92ecf6bba0
commit
ed14361e7b
5 files changed
+86
-6
No files matched your search
@@ -15,9 +15,16 @@ fi
|
||||
if [ -d "/blog/static" ]; then
|
||||
chown -R nextjs:nodejs /blog/static
|
||||
fi
|
||||
if [ -d "/blog/.git" ]; then
|
||||
chown -R nextjs:nodejs /blog/.git
|
||||
fi
|
||||
if [ -f "/blog/hugo.toml" ]; then
|
||||
chown nextjs:nodejs /blog/hugo.toml
|
||||
fi
|
||||
|
||||
# 配置 git(容器内 nextjs 用户)
|
||||
su-exec nextjs git config --global user.name "Write Server" 2>/dev/null
|
||||
su-exec nextjs git config --global user.email "write@usj.cc" 2>/dev/null
|
||||
|
||||
# 以 nextjs 用户启动应用
|
||||
exec su-exec nextjs "$@"
|
||||
Reference in new issue
Block a user