mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-20 05:52:57 +03:00
install_easy : stop service before processing. install_bin: minor fix
This commit is contained in:
parent
c803d879fb
commit
743f9e5111
@ -22,7 +22,7 @@ ccp()
|
|||||||
|
|
||||||
ARCHLIST="aarch64 armhf mips64r2-msb mips32r1-lsb mips32r1-msb ppc x86_64 x86"
|
ARCHLIST="aarch64 armhf mips64r2-msb mips32r1-lsb mips32r1-msb ppc x86_64 x86"
|
||||||
|
|
||||||
if [ "$1" == "getarch" ]; then
|
if [ "$1" = "getarch" ]; then
|
||||||
for arch in $ARCHLIST
|
for arch in $ARCHLIST
|
||||||
do
|
do
|
||||||
if check_dir $arch; then
|
if check_dir $arch; then
|
||||||
|
@ -255,6 +255,15 @@ register_sysv_init_systemd()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
service_stop_systemd()
|
||||||
|
{
|
||||||
|
echo \* stopping service and unregistering init script
|
||||||
|
|
||||||
|
"$SYSTEMCTL" disable zapret
|
||||||
|
"$SYSTEMCTL" stop zapret
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
download_list()
|
download_list()
|
||||||
{
|
{
|
||||||
[ -x "$GET_LIST" ] && {
|
[ -x "$GET_LIST" ] && {
|
||||||
@ -287,6 +296,7 @@ install_systemd()
|
|||||||
|
|
||||||
check_location copy_all
|
check_location copy_all
|
||||||
check_preprequisites_linux
|
check_preprequisites_linux
|
||||||
|
service_stop_systemd
|
||||||
install_binaries
|
install_binaries
|
||||||
install_sysv_init
|
install_sysv_init
|
||||||
register_sysv_init_systemd
|
register_sysv_init_systemd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user