From 1709df386768e6241588a2475e4dc7c4a357c8db Mon Sep 17 00:00:00 2001 From: Key Networks <34238649+key-networks@users.noreply.github.com> Date: Tue, 9 Jan 2018 19:48:39 +0800 Subject: [PATCH] No redirect to /dev/null in RPM scripts --- build/after-install.sh | 4 ++-- build/after-remove.sh | 2 +- build/before-remove.sh | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build/after-install.sh b/build/after-install.sh index 33b06eb..9235e69 100644 --- a/build/after-install.sh +++ b/build/after-install.sh @@ -2,5 +2,5 @@ ETC='/opt/key-networks/ztncui/etc' echo "Copying default password file..." cp -pv $ETC/default.passwd $ETC/passwd echo "Enabling and starting ztncui service..." -systemctl enable ztncui > /dev/null 2>&1 -systemctl start ztncui > /dev/null 2>&1 +systemctl enable ztncui +systemctl start ztncui diff --git a/build/after-remove.sh b/build/after-remove.sh index 8229681..9b76642 100644 --- a/build/after-remove.sh +++ b/build/after-remove.sh @@ -1 +1 @@ -systemctl daemon-reload > /dev/null 2>&1 +systemctl daemon-reload diff --git a/build/before-remove.sh b/build/before-remove.sh index 6d56008..765e415 100644 --- a/build/before-remove.sh +++ b/build/before-remove.sh @@ -1,2 +1,2 @@ -systemctl stop ztncui > /dev/null 2>&1 -systemctl disable ztncui > /dev/null 2>&1 +systemctl stop ztncui +systemctl disable ztncui