Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit130cdca

Browse files
committed
Update check_refill_config function
Add checks to skip generation of the refill-sets.nft script if therefill-sets.conf file hasn't been configured and 'enable_refill=yes'is set in /etc/geo-nft.conf
1 parentb3fb528 commit130cdca

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎geo-nft.sh‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# Standard script variables.
2525

2626
# Semantic version number of this script.
27-
geo_nft_ver=v2.2.2
27+
geo_nft_ver=v2.2.3
2828

2929
# Filename of this script.
3030
script_name="geo-nft.sh"
@@ -705,6 +705,10 @@ check_refill_config() {
705705
# the 'refill-sets.nft' script.
706706
print_line"No settings found. Skipping automatic generation of:""\n""$refill_file""\n" \
707707
"To use this feature configure settings in$refill_conf""\n"
708+
if ["$enable_refill"="yes" ];then
709+
print_line"The 'enable_refill' variable will be set to 'no' for this run.""\n"
710+
enable_refill="no"
711+
fi
708712
elif ["$no_line4"="yes" ];then
709713
# No 'define-ipv4' lines were found in 'refill-sets.conf', even though enable_ipv4=yes,
710714
# so skip the automatic generation of the 'refill-sets.nft' script.
@@ -744,6 +748,10 @@ check_refill_config() {
744748
else
745749
# The refill-sets.conf doesn't exist, so create it.
746750
make_refill_config
751+
if ["$enable_refill"="yes" ];then
752+
print_line"The 'enable_refill' variable will be set to 'no' for this run.""\n"
753+
enable_refill="no"
754+
fi
747755
fi
748756
}
749757

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp