Skip to content

Commit

Permalink
Update 90-seafile
Browse files Browse the repository at this point in the history
  • Loading branch information
darlexlin committed May 13, 2021
1 parent f90d63d commit c93481b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions root/etc/cont-init.d/90-seafile
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
ln -s /app/ccnet /root/.ccnet

# 输出当前时间
echo "-------------------------------------"
echo " "
echo “TIME:$(date)
echo " "
echo "-------------------------------------"
echo "--------------------------------------"
echo " "
echo "Current time:$(date) "
echo " "
echo "--------------------------------------"

# 使用abc用户启动软件,seafile程序生成的文件权限为abc:abc
# 如果直接启动,将导致seafile程序生成的文件权限为root:root
# 如下方式终于可以完美实现docker正常启动、seafile文件权限也正确。
echo " "
echo " "
runuser -u abc -g abc /usr/bin/seaf-cli start
echo " "
echo "-------------------------------------"
echo " "
echo "seafile started "
echo " "
echo "-------------------------------------"
echo " "
echo "--------------------------------------"
echo " "
echo "Seafile started at:$(date) "
echo " "
echo "--------------------------------------"

0 comments on commit c93481b

Please sign in to comment.