Skip to content

Commit

Permalink
fix #9 and #10: replacing whole line not adding ports anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
ntt-matthias-fleschuetz authored and idoop committed Mar 5, 2021
1 parent 5a3a46d commit 4f1999b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ elif [ "$#" == "0" ];then
echo "Using default port: 80"
else
echo "Using specified port: ${SERVER_PORT}"
sed -i -e "s/listen 80/listen ${SERVER_PORT}/" /etc/nginx/conf.d/nuget.conf
sed -i -e "s/listen.*/listen ${SERVER_PORT};/" /etc/nginx/conf.d/nuget.conf
fi

# Set Worker_Processes
Expand Down

0 comments on commit 4f1999b

Please sign in to comment.