From d99ee3dec049825510c22a2f9036e0e6cba3a54a Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Sun, 15 Dec 2019 14:27:39 +0100 Subject: [PATCH] Added queuedir variable to piler.conf in postinstall script Signed-off-by: Janos SUTO --- util/postinstall.sh.in | 1 + 1 file changed, 1 insertion(+) diff --git a/util/postinstall.sh.in b/util/postinstall.sh.in index 1b49914d..c9ebd178 100755 --- a/util/postinstall.sh.in +++ b/util/postinstall.sh.in @@ -391,6 +391,7 @@ SOCKHELPER MYSQL_SOCKET=$(perl "$SOCKET_HELPER_SCRIPT" "$MYSQL_SOCKET") sed -e "s/mysqlpwd=verystrongpassword/mysqlpwd=${MYSQL_PASSWORD}/" -e "s/tls_enable=0/tls_enable=1/" -e "s/mysqlsocket=\/var\/run\/mysqld\/mysqld.sock/mysqlsocket=${MYSQL_SOCKET}/" "${SYSCONFDIR}/piler/piler.conf.dist" > "$PILERCONF_TMP" + [[ grep queuedir "$PILERCONF_TMP" ]] || echo queuedir=/var/piler/store >> "$PILERCONF_TMP" cat "$PILERCONF_TMP" > "${SYSCONFDIR}/piler/piler.conf" rm -f "$PILERCONF_TMP"