fix permissions on db file

This commit is contained in:
Stefan Stidl 2024-12-01 22:08:51 +01:00
parent c0c2a41c23
commit c00ad26abe

View file

@ -18,9 +18,13 @@ cp /speedtest/favicon.ico /var/www/html/
# Set custom webroot on alpine
if is_alpine; then
echo "ALPINE IMAGE"
sed -i "s#\"/var/www/localhost/htdocs\"#\"/var/www/html\"#g" /etc/apache2/httpd.conf
else
echo "DEBIAN IMAGE"
fi
# Set up backend side for standlone modes
if [[ "$MODE" == "standalone" || "$MODE" == "dual" ]]; then
cp -r /speedtest/backend/ /var/www/html/backend
@ -82,9 +86,9 @@ if [[ "$TELEMETRY" == "true" && ("$MODE" == "frontend" || "$MODE" == "standalone
mkdir -p /database/
if is_alpine; then
chown apache /database/
chown -R apache /database/
else
chown www-data /database/
chown -R www-data /database/
fi
fi