summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorkyechou2017-08-01 13:14:40 +0800
committerkyechou2017-08-01 13:14:40 +0800
commiteba2a646944e4eb98e9719e2d9d7732b97ccd2ac (patch)
treeb9cb99527d81de226d4e5c9461f9a05e997569fe
parent47b331330b43ba51354b820922cad6681ff8a0b7 (diff)
downloadaur-eba2a646944e4eb98e9719e2d9d7732b97ccd2ac.tar.gz
mute the systemctl checking output
-rw-r--r--shifter-imagegw.install12
-rw-r--r--shifter-runtime.install4
2 files changed, 8 insertions, 8 deletions
diff --git a/shifter-imagegw.install b/shifter-imagegw.install
index 64044fe49d3f..537b7744386d 100644
--- a/shifter-imagegw.install
+++ b/shifter-imagegw.install
@@ -9,22 +9,22 @@ post_upgrade() {
systemctl daemon-reload
echo -e "\e[34;1m==>\e[39;1m Enabling mongodb.service... \e[0m"
- systemctl is-enabled mongodb.service || systemctl enable mongodb.service
+ systemctl is-enabled mongodb.service >/dev/null || systemctl enable mongodb.service
echo -e "\e[34;1m==>\e[39;1m Starting mongodb.service... \e[0m"
- systemctl is-active mongodb.service || systemctl start mongodb.service
+ systemctl is-active mongodb.service >/dev/null || systemctl start mongodb.service
echo -e "\e[34;1m==>\e[39;1m Enabling redis.service... \e[0m"
- systemctl is-enabled redis.service || systemctl enable redis.service
+ systemctl is-enabled redis.service >/dev/null || systemctl enable redis.service
echo -e "\e[34;1m==>\e[39;1m Starting redis.service... \e[0m"
- systemctl is-active redis.service || systemctl start redis.service
+ systemctl is-active redis.service >/dev/null || systemctl start redis.service
echo -e "\e[34;1m==>\e[39;1m Enabling munge.service... \e[0m"
- systemctl is-enabled munge.service || systemctl enable munge.service
+ systemctl is-enabled munge.service >/dev/null || systemctl enable munge.service
echo -e "\e[34;1m==>\e[39;1m Starting munge.service... \e[0m"
- systemctl is-active munge.service || systemctl start munge.service
+ systemctl is-active munge.service >/dev/null || systemctl start munge.service
echo -e "\e[34;1m==>\e[39;1m Loading kernel modules... \e[0m"
[ -z "$(lsmod | grep ^squashfs)" ] && modprobe squashfs
diff --git a/shifter-runtime.install b/shifter-runtime.install
index 677ac71fd2b5..c7530331fc84 100644
--- a/shifter-runtime.install
+++ b/shifter-runtime.install
@@ -9,10 +9,10 @@ post_upgrade() {
systemctl daemon-reload
echo -e "\e[34;1m==>\e[39;1m Enabling munge.service... \e[0m"
- systemctl is-enabled munge.service || systemctl enable munge.service
+ systemctl is-enabled munge.service >/dev/null || systemctl enable munge.service
echo -e "\e[34;1m==>\e[39;1m Starting munge.service... \e[0m"
- systemctl is-active munge.service || systemctl start munge.service
+ systemctl is-active munge.service >/dev/null || systemctl start munge.service
echo -e "\e[34;1m==>\e[39;1m Copying /etc/passwd... \e[0m"
cp -f /etc/passwd /etc/shifter/shifter_etc_files/passwd