Изменил(а) на 'start.sh'
This commit is contained in:
parent
aa32724da6
commit
a0a80da187
9
start.sh
9
start.sh
@ -6,14 +6,9 @@ apt update && apt upgrade -y && apt install -y nano cron wget aria2 unzip imagem
|
|||||||
# Enable www-data
|
# Enable www-data
|
||||||
chsh -s /bin/bash www-data
|
chsh -s /bin/bash www-data
|
||||||
|
|
||||||
# Configure cron config
|
# Start self-made cron
|
||||||
rm /etc/cron.d/www-data
|
sh /home/nextcloud-cron.sh &
|
||||||
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
|
|
||||||
|
|
||||||
# Startup
|
# 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'
|
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'
|
sh /entrypoint.sh 'apache2-foreground'
|
||||||
Loading…
x
Reference in New Issue
Block a user