Skip to content

Commit 43f5e8e

Browse files
authored
Merge pull request #1645 from as598466/dev
Update webodm.sh
2 parents c83de16 + 9edbe09 commit 43f5e8e

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

webodm.sh

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ case $key in
150150
;;
151151
--ipv6)
152152
ipv6=true
153+
export WO_IPV6=YES
153154
shift # past argument
154155
;;
155156
*) # unknown option
@@ -373,6 +374,7 @@ start(){
373374
echo "================================"
374375
echo "Host: $WO_HOST"
375376
echo "Port: $WO_PORT"
377+
echo "IPv6: $WO_IPV6"
376378
echo "Media directory: $WO_MEDIA_DIR"
377379
echo "Postgres DB directory: $WO_DB_DIR"
378380
echo "SSL: $WO_SSL"
@@ -490,10 +492,6 @@ down(){
490492
command+=" -f docker-compose.nodeodm.yml"
491493
fi
492494

493-
if [[ $ipv6 = true ]]; then
494-
command+=" -f docker-compose.ipv6.yml"
495-
fi
496-
497495
command+=" -f docker-compose.nodemicmac.yml down --remove-orphans"
498496

499497
run "${command}"
@@ -596,11 +594,7 @@ elif [[ $1 = "stop" ]]; then
596594
else
597595
command+=" -f docker-compose.nodeodm.yml"
598596
fi
599-
600-
if [[ $ipv6 = true ]]; then
601-
command+=" -f docker-compose.ipv6.yml"
602-
fi
603-
597+
604598
command+=" -f docker-compose.nodemicmac.yml stop"
605599
run "${command}"
606600
elif [[ $1 = "restart" ]]; then

0 commit comments

Comments
 (0)