mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
install-reddit: Make sure to enable the haproxy service.
This commit is contained in:
@@ -310,6 +310,12 @@ if [ -e /etc/haproxy/haproxy.cfg ]; then
|
||||
cat /etc/haproxy/haproxy.cfg > $BACKUP_HAPROXY
|
||||
fi
|
||||
|
||||
# make sure haproxy is enabled
|
||||
cat > /etc/default/haproxy <<DEFAULT
|
||||
ENABLED=1
|
||||
DEFAULT
|
||||
|
||||
# configure haproxy
|
||||
cat > /etc/haproxy/haproxy.cfg <<HAPROXY
|
||||
global
|
||||
maxconn 100
|
||||
|
||||
Reference in New Issue
Block a user