This commit is contained in:
Danny Houtworm 2023-08-14 07:51:12 +00:00
parent 1b47bdc126
commit f3ea19f7c3
2 changed files with 4 additions and 7 deletions

View File

@ -1,10 +1,5 @@
# extra service
fail2ban
Nextcloud?
Dozzle?
Grafana
# Cleanup
Fixfail2ban
Replace Latest tag with the second to last
double check PID1
check that everything restarts after crash

View File

@ -5,7 +5,9 @@ then
else
sleep 15
cd /var/www/nextcloud
sudo -u nextcloud ./occ maintenance:install --database='mysql' --database-host="172.20.30.20:3306" --database-name="${NEXTCLOUDDATABASE}" --database-user="${NEXTCLOUDDATABASEUSER}" --database-pass="${NEXTCLOUDDATABASEPASSWD}" --admin-user="${NEXTCLOUDUSER}" --admin-pass="${NEXTCLOUDPASSWD}"
chmod +x occ
chown -R nobody:nobody /var/www/nextcloud
sudo -u nobody ./occ maintenance:install --database='mysql' --database-host="172.20.30.20:3306" --database-name="${NEXTCLOUDDATABASE}" --database-user="${NEXTCLOUDDATABASEUSER}" --database-pass="${NEXTCLOUDDATABASEPASSWD}" --admin-user="${NEXTCLOUDUSER}" --admin-pass="${NEXTCLOUDPASSWD}"
sed -i "8i 1 => 'nextcloud.djonker.42.fr'," config/config.php
fi
php-fpm81 -F -R