Update entrypoint.sh
This commit is contained in:
1 parent
9f3bfdee6f
commit
088c48fabe
1 file changed
+2
-13
@@ -10,19 +10,8 @@ chown -R nextjs:nodejs /app/recycle /app/logs /app/backups
|
|||||||
|
|
||||||
# 修复博客目录权限(让 nextjs 用户可写)
|
# 修复博客目录权限(让 nextjs 用户可写)
|
||||||
if [ -d "/blog" ]; then
|
if [ -d "/blog" ]; then
|
||||||
chown nextjs:nodejs /blog
|
# 博客根目录及其所有文件
|
||||||
fi
|
chown -R nextjs:nodejs /blog
|
||||||
if [ -d "/blog/content" ]; then
|
|
||||||
chown -R nextjs:nodejs /blog/content
|
|
||||||
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
|
fi
|
||||||
|
|
||||||
# 配置 git(容器内 nextjs 用户)
|
# 配置 git(容器内 nextjs 用户)
|
||||||
|
|||||||
Reference in new issue
Block a user