Change database permissions on startup

This commit is contained in:
ellite 2023-11-10 16:04:33 +01:00
parent 2e55e105b5
commit 21a2776b39

View File

@ -14,6 +14,9 @@ sleep 1
# Create database if it does not exist # Create database if it does not exist
/usr/local/bin/php /var/www/html/endpoints/cronjobs/createdatabase.php /usr/local/bin/php /var/www/html/endpoints/cronjobs/createdatabase.php
# Change permissions on the database directory
chmod -R 755 /var/www/html/db/
# Run updatenextpayment.php and wait for it to finish # Run updatenextpayment.php and wait for it to finish
/usr/local/bin/php /var/www/html/endpoints/cronjobs/updatenextpayment.php /usr/local/bin/php /var/www/html/endpoints/cronjobs/updatenextpayment.php