diff --git a/Readme.md b/Readme.md index d95ac5e..7ad6edb 100644 --- a/Readme.md +++ b/Readme.md @@ -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 diff --git a/srcs/requirements/nextcloud/srcs/start.sh b/srcs/requirements/nextcloud/srcs/start.sh index 5596a69..94014cd 100644 --- a/srcs/requirements/nextcloud/srcs/start.sh +++ b/srcs/requirements/nextcloud/srcs/start.sh @@ -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