Verified Commit f753c5ad authored by EorlBruder's avatar EorlBruder
Browse files

fix(icecast): fix variable check

parent a66056ab
Pipeline #1763 passed with stage
in 3 minutes and 5 seconds
......@@ -13,7 +13,7 @@ do
sed -i 's|DASHBOARD_OIDC_CLIENT_ID|'${DASHBOARD_OIDC_CLIENT_ID}'|g' $file
done
if [ $INCLUDE_ICECAST == "\"true\"" ]; then
if [ $INCLUDE_ICECAST == "true" ]; then
sed -Ei 's/^#([[:blank:]]*include \/etc\/nginx\/conf.d\/locations\/icecast.conf;)/\1/' default.conf
else
sed -i 's/^[[:blank:]]*include \/etc\/nginx\/conf.d\/locations\/icecast.conf;/#&/' /etc/nginx/conf.d/default.conf
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment