Skip to content

Commit

Permalink
fix database permissions alpine, remove baby
Browse files Browse the repository at this point in the history
  • Loading branch information
sstidl committed Dec 1, 2024
1 parent 018c696 commit 83f7491
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -85,9 +89,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

Expand Down
2 changes: 1 addition & 1 deletion frontend/javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function startRenderingLoop() {

const buttonTexts = {
[INITIALIZING]: "Loading...",
[READY]: "Let's start baby",
[READY]: "Let's start",
[RUNNING]: "Abort",
[FINISHED]: "Restart",
};
Expand Down

0 comments on commit 83f7491

Please sign in to comment.