Skip to content

Commit

Permalink
Correct Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Sep 23, 2023
1 parent 429edfe commit 99bfed3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gitea/rootfs/etc/cont-init.d/99-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ for file in /data/gitea/conf/app.ini /etc/templates/app.ini; do
sed -i "/server/a PROTOCOL=http" "$file"
fi

done

##################
# ADAPT ROOT_URL #
##################

if bashio::config.true 'ROOT_URL'; then
if bashio::config.has_value 'ROOT_URL'; then
bashio::log.blue "ROOT_URL set, using value : $(bashio::config 'ROOT_URL')"
else
ROOT_URL="$PROTOCOL://$(bashio::config 'DOMAIN'):$(bashio::addon.port 3000)"
Expand Down Expand Up @@ -64,6 +62,8 @@ for param in APP_NAME DOMAIN ROOT_URL; do

done

done

##############
# LAUNCH APP #
##############
Expand Down

0 comments on commit 99bfed3

Please sign in to comment.