install_easy : stop service before processing. install_bin: minor fix

This commit is contained in:
bolvan 2019-05-06 16:26:20 +03:00
parent c803d879fb
commit 743f9e5111
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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