Update pgpool.spec file.
authorBo Peng <pengbo@sraoss.co.jp>
Mon, 17 Feb 2020 13:36:42 +0000 (22:36 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Mon, 17 Feb 2020 13:36:42 +0000 (22:36 +0900)
src/pgpool.spec

index fe4d5dee47607db8e0314ec6556ae3b217f9cc74..cd4742dcd26362668815a0abe713f53f327f1f0c 100644 (file)
@@ -175,8 +175,8 @@ useradd -M -g postgres -o -r -d /var/lib/pgsql -s /bin/bash \
 
 %post
 /sbin/ldconfig
-echo 'postgres ALL=NOPASSWD: /sbin/ip' | sudo EDITOR='tee -a' visudo
-echo 'postgres ALL=NOPASSWD: /usr/sbin/arping' | sudo EDITOR='tee -a' visudo
+echo 'postgres ALL=NOPASSWD: /sbin/ip' | sudo EDITOR='tee -a' visudo >/dev/null 2>&1 || :
+echo 'postgres ALL=NOPASSWD: /usr/sbin/arping' | sudo EDITOR='tee -a' visudo >/dev/null 2>&1 || :
 
 %if %{systemd_enabled}
 %systemd_post pgpool.service