Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

Change database permissions on startup

ellite21a2776b390d
diff --git a/startup.sh b/startup.sh
index d445db7..17c9503 100644
--- a/startup.sh
+++ b/startup.sh
@@ -14,6 +14,9 @@ sleep 1
# Create database if it does not exist
/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
/usr/local/bin/php /var/www/html/endpoints/cronjobs/updatenextpayment.php