mirror of
https://github.com/librespeed/speedtest.git
synced 2026-08-04 06:39:45 +00:00
fix permissions on db file
This commit is contained in:
parent
c0c2a41c23
commit
c00ad26abe
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue