Run cron as root
This commit is contained in:
@@ -51,7 +51,6 @@ RUN mkdir -p /etc/apt/sources.list.d/ ;\
|
||||
echo "seafuser" > /etc/cron.allow ;\
|
||||
echo "*/20 * * * * /bin/bash /home/seafuser/infinite-seaf-cli-start.sh" \
|
||||
> /var/spool/cron/crontabs/seafuser ;\
|
||||
touch /var/run/crond.pid ;\
|
||||
groupadd -g $GID -o $UNAME ;\
|
||||
useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
|
||||
|
||||
|
||||
@@ -52,3 +52,5 @@ su - $UNAME << EO
|
||||
export UNAME=$UNAME
|
||||
/bin/bash /home/seafuser/entrypoint.sh
|
||||
EO
|
||||
|
||||
cron -f
|
||||
@@ -34,6 +34,3 @@ while [ ! -S $seafile_sock ]; do sleep 1; done
|
||||
|
||||
# Start the synchronisation.
|
||||
/usr/bin/seaf-cli sync -u $SEAF_USERNAME -p $SEAF_PASSWORD -s $SEAF_SERVER_URL -l $SEAF_LIBRARY_UUID -d /volume
|
||||
|
||||
# Start the supervisord.
|
||||
/usr/sbin/cron -f
|
||||
Reference in New Issue
Block a user