mirror of
https://github.com/bol-van/zapret.git
synced 2024-12-23 14:53:18 +00:00
uninstall_easy, install_prereq: fix config/config.default logic
This commit is contained in:
parent
9ef4d530e9
commit
addce6782f
@ -8,6 +8,7 @@ ZAPRET_CONFIG="$EXEDIR/config"
|
|||||||
ZAPRET_BASE="$EXEDIR"
|
ZAPRET_BASE="$EXEDIR"
|
||||||
|
|
||||||
[ -f "$ZAPRET_CONFIG" ] || cp "${ZAPRET_CONFIG}.default" "$ZAPRET_CONFIG"
|
[ -f "$ZAPRET_CONFIG" ] || cp "${ZAPRET_CONFIG}.default" "$ZAPRET_CONFIG"
|
||||||
|
. "$ZAPRET_CONFIG"
|
||||||
. "$ZAPRET_BASE/common/base.sh"
|
. "$ZAPRET_BASE/common/base.sh"
|
||||||
. "$ZAPRET_BASE/common/elevate.sh"
|
. "$ZAPRET_BASE/common/elevate.sh"
|
||||||
. "$ZAPRET_BASE/common/fwtype.sh"
|
. "$ZAPRET_BASE/common/fwtype.sh"
|
||||||
|
@ -8,6 +8,7 @@ IPSET_DIR="$EXEDIR/ipset"
|
|||||||
ZAPRET_CONFIG="$EXEDIR/config"
|
ZAPRET_CONFIG="$EXEDIR/config"
|
||||||
ZAPRET_BASE="$EXEDIR"
|
ZAPRET_BASE="$EXEDIR"
|
||||||
|
|
||||||
|
[ -f "$ZAPRET_CONFIG" ] || cp "${ZAPRET_CONFIG}.default" "$ZAPRET_CONFIG"
|
||||||
. "$ZAPRET_CONFIG"
|
. "$ZAPRET_CONFIG"
|
||||||
. "$ZAPRET_BASE/common/base.sh"
|
. "$ZAPRET_BASE/common/base.sh"
|
||||||
. "$ZAPRET_BASE/common/elevate.sh"
|
. "$ZAPRET_BASE/common/elevate.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user