Skip to content

Commit 00265c7

Browse files
authored
Merge pull request #24 from Monadical-SAS/afreydev/extract-domain-fix
chore: Remove extract domain
2 parents bdf0233 + 02e6a04 commit 00265c7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

bin/shtool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function setup_letsencrypt #description 'Set up Lets Encrypt certificates for Tr
3939
chmod 600 "$LETSENCRYPT_DIR"
4040
chmod 600 "$LOGS_DIR/access.log"
4141

42-
BASE_DOMAIN=$(extract_domain "${DOMAIN}")
42+
BASE_DOMAIN="${DOMAIN}"
4343

4444
else
4545
BASE_DOMAIN="localhost"

bin/tools.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ tail_logs() {
2222
docker compose logs -f --no-color 2>&1 | sed "s/^/[$app] /"
2323
}
2424

25-
extract_domain() {
26-
echo "$1" | sed -E 's/.*\.([^.]+\.[^.]+\.[^.]+)$/\1/; t; s/.*\.([^.]+\.[^.]+)$/\1/'
27-
}
28-
2925
add_key_in_env() {
3026
local KEY=$1
3127
local VALUE=$2

0 commit comments

Comments
 (0)