Skip to content

Commit

Permalink
Update 20-config
Browse files Browse the repository at this point in the history
  • Loading branch information
darlexlin committed May 13, 2021
1 parent 53f868b commit f90d63d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions root/etc/cont-init.d/20-config
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# echo "Add abc to ROOT"
# 经验证,此方法不能解决文件映射的权限问题,以此留证。

echo "-------------------------------------"
echo " "
echo “Config started at:$(date)”
echo " "
echo "-------------------------------------"

# 配置权限,sf为数据目录,app为配置目录
# 此配置全部注释掉,开启此配置会在容器生成后或重启后,均会全部遍历一遍更改文件权限,导致启动或重启很慢
# 遍历过一次权限后,后续生成的文件不存在权限问题,所以考虑关掉此配置
Expand All @@ -14,3 +20,9 @@ chown -R abc:abc \
chmod -R g+w \
/app \
/config

echo "-------------------------------------"
echo " "
echo “Config stopped at:$(date)”
echo " "
echo "-------------------------------------"

0 comments on commit f90d63d

Please sign in to comment.