Skip to content

Commit

Permalink
Better sed script to replace server name in Apache config
Browse files Browse the repository at this point in the history
Better sed script to replace the server name in the Apache HTTP Server
configuration template in the entrypoint script.
  • Loading branch information
skoranda committed Jan 2, 2018
1 parent 844fe7e commit 7535f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comanage-registry-shibboleth-sp/docker-comanage-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ if [ -z "$SERVER_NAME" ]; then
fi

# Configure Apache HTTP Server with the server name.
sed -i -e s@%%SERVER_NAME%%@"${SERVER_NAME:-unknown}"@ /etc/apache2/sites-available/000-comanage.conf
sed -i -e s@%%SERVER_NAME%%@"${SERVER_NAME:-unknown}"@g /etc/apache2/sites-available/000-comanage.conf

cat > /etc/apache2/conf-available/server-name.conf <<EOF
ServerName ${SERVER_NAME:-unknown}
Expand Down

0 comments on commit 7535f2a

Please sign in to comment.