mirror of https://github.com/Aidaho12/haproxy-wi
commit
1acffea51e
|
@ -46,7 +46,7 @@ The installer will ask you a few questions
|
||||||
$ git clone https://github.com/Aidaho12/haproxy-wi.git /var/www/haproxy-wi
|
$ git clone https://github.com/Aidaho12/haproxy-wi.git /var/www/haproxy-wi
|
||||||
$ cd /var/www/haproxy-wi
|
$ cd /var/www/haproxy-wi
|
||||||
$ chmod +x install.sh
|
$ chmod +x install.sh
|
||||||
$ sudo ./install
|
$ sudo ./install.sh
|
||||||
```
|
```
|
||||||
## Manual install
|
## Manual install
|
||||||
For install just clone:
|
For install just clone:
|
||||||
|
|
10
install.sh
10
install.sh
|
@ -175,10 +175,11 @@ TimeoutStopSec=1s
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF > /etc/rsyslog.d/checker.conf
|
cat << 'EOF' > /etc/rsyslog.d/checker.conf
|
||||||
if $programname startswith 'checker' then /var/www/$HOME_HAPROXY_WI/log/checker-error.log
|
if $programname startswith 'checker' then /var/www/__HOME_HAPROXY_WI__/log/checker-error.log
|
||||||
& stop
|
& stop
|
||||||
EOF
|
EOF
|
||||||
|
sed -i -e "s/__HOME_HAPROXY_WI__/$HOME_HAPROXY_WI/g" /etc/rsyslog.d/checker.conf
|
||||||
|
|
||||||
cat << EOF > /etc/logrotate.d/checker
|
cat << EOF > /etc/logrotate.d/checker
|
||||||
/var/www/$HOME_HAPROXY_WI/log/checker-error.log {
|
/var/www/$HOME_HAPROXY_WI/log/checker-error.log {
|
||||||
|
@ -214,10 +215,11 @@ TimeoutStopSec=1s
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat << EOF > /etc/rsyslog.d/metrics.conf
|
cat << 'EOF' > /etc/rsyslog.d/metrics.conf
|
||||||
if $programname startswith 'metrics' then /var/www/$HOME_HAPROXY_WI/log/metrics-error.log
|
if $programname startswith 'metrics' then /var/www/__HOME_HAPROXY_WI__/log/metrics-error.log
|
||||||
& stop
|
& stop
|
||||||
EOF
|
EOF
|
||||||
|
sed -i -e "s/__HOME_HAPROXY_WI__/$HOME_HAPROXY_WI/g" /etc/rsyslog.d/metrics.conf
|
||||||
|
|
||||||
cat << EOF > /etc/logrotate.d/metrics
|
cat << EOF > /etc/logrotate.d/metrics
|
||||||
/var/www/$HOME_HAPROXY_WI/log/metrics-error.log {
|
/var/www/$HOME_HAPROXY_WI/log/metrics-error.log {
|
||||||
|
|
Loading…
Reference in New Issue