Browse Source

common: remove readonly

pull/989/head
bol-van 4 months ago
parent
commit
869e2cd8f9
  1. 2
      common/installer.sh
  2. 2
      common/ipt.sh
  3. 4
      common/list.sh
  4. 2
      common/nft.sh

2
common/installer.sh

@ -1,4 +1,4 @@
readonly GET_LIST_PREFIX=/ipset/get_ GET_LIST_PREFIX=/ipset/get_
SYSTEMD_DIR=/lib/systemd SYSTEMD_DIR=/lib/systemd
[ -d "$SYSTEMD_DIR" ] || SYSTEMD_DIR=/usr/lib/systemd [ -d "$SYSTEMD_DIR" ] || SYSTEMD_DIR=/usr/lib/systemd

2
common/ipt.sh

@ -1,5 +1,5 @@
std_ports std_ports
readonly ipt_connbytes="-m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes" ipt_connbytes="-m connbytes --connbytes-dir=original --connbytes-mode=packets --connbytes"
ipt() ipt()
{ {

4
common/list.sh

@ -1,5 +1,5 @@
readonly HOSTLIST_MARKER="<HOSTLIST>" HOSTLIST_MARKER="<HOSTLIST>"
readonly HOSTLIST_NOAUTO_MARKER="<HOSTLIST_NOAUTO>" HOSTLIST_NOAUTO_MARKER="<HOSTLIST_NOAUTO>"
find_hostlists() find_hostlists()
{ {

2
common/nft.sh

@ -1,5 +1,5 @@
[ -n "$ZAPRET_NFT_TABLE" ] || ZAPRET_NFT_TABLE=zapret [ -n "$ZAPRET_NFT_TABLE" ] || ZAPRET_NFT_TABLE=zapret
readonly nft_connbytes="ct original packets" nft_connbytes="ct original packets"
# required for : nft -f - # required for : nft -f -
create_dev_stdin create_dev_stdin

Loading…
Cancel
Save