From 743f9e511171a5bd0c97ba593d1ecb04039abf6c Mon Sep 17 00:00:00 2001 From: bolvan Date: Mon, 6 May 2019 16:26:20 +0300 Subject: [PATCH] install_easy : stop service before processing. install_bin: minor fix --- install_bin.sh | 2 +- install_easy.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/install_bin.sh b/install_bin.sh index f9a4eae..c8a9d5b 100755 --- a/install_bin.sh +++ b/install_bin.sh @@ -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 diff --git a/install_easy.sh b/install_easy.sh index d6cc750..9964cf0 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -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