mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 05:22:58 +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"
|
||||
|
||||
if [ "$1" == "getarch" ]; then
|
||||
if [ "$1" = "getarch" ]; then
|
||||
for arch in $ARCHLIST
|
||||
do
|
||||
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()
|
||||
{
|
||||
[ -x "$GET_LIST" ] && {
|
||||
@ -287,6 +296,7 @@ install_systemd()
|
||||
|
||||
check_location copy_all
|
||||
check_preprequisites_linux
|
||||
service_stop_systemd
|
||||
install_binaries
|
||||
install_sysv_init
|
||||
register_sysv_init_systemd
|
||||
|
Loading…
x
Reference in New Issue
Block a user