From a0a80da187e1fc4c576373c71457d5165807edbf Mon Sep 17 00:00:00 2001 From: dimon Date: Tue, 14 Feb 2023 21:09:40 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'start.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- start.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/start.sh b/start.sh index 21dadc9..fcb96ce 100644 --- a/start.sh +++ b/start.sh @@ -6,14 +6,9 @@ apt update && apt upgrade -y && apt install -y nano cron wget aria2 unzip imagem # Enable www-data chsh -s /bin/bash www-data -# Configure cron config -rm /etc/cron.d/www-data -wget --wait=60 --tries=10 https://git.dfosd.synology.me/docker/ubuntu-nextcloud/raw/branch/master/cron -O /var/spool/cron/crontabs/www-data -chown www-data:crontab /var/spool/cron/crontabs/www-data -chmod 600 /var/spool/cron/crontabs/www-data -crontab /var/spool/cron/crontabs/www-data +# Start self-made cron +sh /home/nextcloud-cron.sh & # Startup -service cron start runuser -l www-data -c 'aria2c --daemon=true --console-log-level=warn --enable-rpc --rpc-listen-all --conf-path=/home/aria2.daemon' sh /entrypoint.sh 'apache2-foreground' \ No newline at end of file