mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +03:00
install_easy : cosmetic
This commit is contained in:
parent
889bda44ba
commit
8141625e01
@ -263,7 +263,7 @@ crontab_add()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
check_preprequisites_linux()
|
check_prerequisites_linux()
|
||||||
{
|
{
|
||||||
echo \* checking prerequisites ...
|
echo \* checking prerequisites ...
|
||||||
|
|
||||||
@ -276,13 +276,13 @@ check_preprequisites_linux()
|
|||||||
YUM=$(whichq yum)
|
YUM=$(whichq yum)
|
||||||
PACMAN=$(whichq pacman)
|
PACMAN=$(whichq pacman)
|
||||||
ZYPPER=$(whichq zypper)
|
ZYPPER=$(whichq zypper)
|
||||||
if [ -x "$APTGET" ] ; then
|
if [ -x "$APTGET" ] ; then
|
||||||
"$APTGET" update
|
"$APTGET" update
|
||||||
"$APTGET" install -y --no-install-recommends ipset curl dnsutils || {
|
"$APTGET" install -y --no-install-recommends ipset curl dnsutils || {
|
||||||
echo could not install prerequisites
|
echo could not install prerequisites
|
||||||
exitp 6
|
exitp 6
|
||||||
}
|
}
|
||||||
elif [ -x "$YUM" ] ; then
|
elif [ -x "$YUM" ] ; then
|
||||||
"$YUM" -y install curl ipset || {
|
"$YUM" -y install curl ipset || {
|
||||||
echo could not install prerequisites
|
echo could not install prerequisites
|
||||||
exitp 6
|
exitp 6
|
||||||
@ -391,7 +391,7 @@ install_systemd()
|
|||||||
INIT_SCRIPT=/etc/init.d/zapret
|
INIT_SCRIPT=/etc/init.d/zapret
|
||||||
|
|
||||||
check_location copy_all
|
check_location copy_all
|
||||||
check_preprequisites_linux
|
check_prerequisites_linux
|
||||||
service_stop_systemd
|
service_stop_systemd
|
||||||
install_binaries
|
install_binaries
|
||||||
ask_config
|
ask_config
|
||||||
@ -426,7 +426,7 @@ check_packages_openwrt()
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
check_preprequisites_openwrt()
|
check_prerequisites_openwrt()
|
||||||
{
|
{
|
||||||
echo \* checking prerequisites ...
|
echo \* checking prerequisites ...
|
||||||
|
|
||||||
@ -569,7 +569,7 @@ install_openwrt()
|
|||||||
OPENWRT_FW_INCLUDE=/etc/firewall.zapret
|
OPENWRT_FW_INCLUDE=/etc/firewall.zapret
|
||||||
|
|
||||||
check_location copy_minimal
|
check_location copy_minimal
|
||||||
check_preprequisites_openwrt
|
check_prerequisites_openwrt
|
||||||
install_binaries
|
install_binaries
|
||||||
ask_config
|
ask_config
|
||||||
install_sysv_init
|
install_sysv_init
|
||||||
|
Loading…
x
Reference in New Issue
Block a user