14 lines
390 B
Bash
14 lines
390 B
Bash
#!/bin/bash
|
|
|
|
# Prepare
|
|
apt update && apt upgrade -y && apt install -y nano cron wget aria2 unzip imagemagick
|
|
|
|
# Enable www-data
|
|
chsh -s /bin/bash www-data
|
|
|
|
# Start self-made cron
|
|
sh /home/nextcloud-cron.sh &
|
|
|
|
# Startup
|
|
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' |