From 73857a60c7c605ed9b3cadcb3374eaf73995f5e7 Mon Sep 17 00:00:00 2001 From: paukstelis Date: Wed, 25 May 2022 17:37:48 -0400 Subject: [PATCH] filenaming --- octoprint_deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octoprint_deploy.sh b/octoprint_deploy.sh index e2fee7b..369a9dd 100755 --- a/octoprint_deploy.sh +++ b/octoprint_deploy.sh @@ -660,9 +660,9 @@ prepare () { HAversion=$(haproxy -v | sed -n 's/^.*version \([0-9]\).*/\1/p') mv /etc/haproxy/haproxy.cfg /etc/haproxy/haproxy.orig if [ $HAversion -gt 1 ]; then - cp $SCRIPTDIR/haproxy2.basic /etc/haproxy/haproxy.cfg + cp $SCRIPTDIR/haproxy2x.basic /etc/haproxy/haproxy.cfg else - cp $SCRIPTDIR/haproxy1.basic /etc/haproxy/haproxy.cfg + cp $SCRIPTDIR/haproxy1x.basic /etc/haproxy/haproxy.cfg fi systemctl start haproxy systemctl enable haproxy