Bachir Soussi Chiadmi 5 years ago
parent
commit
ae8ccb5bf6
4 changed files with 6 additions and 6 deletions
  1. 0 0
      assets/zabbix/proxmox-ct.conf
  2. 2 2
      bin/lemp.sh
  3. 1 1
      bin/urbackup.sh
  4. 3 3
      bin/zabbix.sh

+ 0 - 0
assets/zabbix/promox-ct.conf → assets/zabbix/proxmox-ct.conf


+ 2 - 2
bin/lemp.sh

@@ -92,8 +92,8 @@ chown -R www:www /var/lib/nginx
 chown -R www:www /var/www/html
 
 mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.ori
-cp "$_assets"/default.nginxconf /etc/nginx/conf.d/default.conf
-cp "$_assets"/index.php /var/www/html/
+cp "$_assets"/lemp/default.nginxconf /etc/nginx/conf.d/default.conf
+cp "$_assets"/lemp/index.php /var/www/html/
 
 rc-update add nginx
 service nginx start

+ 1 - 1
bin/urbackup.sh

@@ -33,7 +33,7 @@ fi
 
 # Install the dependencies UrBackup needs
 # apt install build-essential "g++" "libcrypto++-dev" libz-dev -y
-apk add linux-headers "g++" zlib zlid-dev "crypto++@testing" "crypto++-dev@testing"
+apk add linux-headers "g++" zlib zlib-dev "crypto++@testing" "crypto++-dev@testing"
 
 ln -s /usr/lib/libcryptopp.so /usr/lib/libcryptopp.so.5.6
 

+ 3 - 3
bin/zabbix.sh

@@ -68,7 +68,7 @@ sed -i "s|#\ Include=$|Include= $_agent_conf_d|g" /etc/zabbix/zabbix_agentd.conf
 # NGINX
 # https://github.com/sfuerte/zbx-nginx
 # nginxconf already included in default.nginxconf asset
-sed -i "s/# allow CURRENT-SERVER-IP/allow $_cur_ip/g" /etc/nginx/sites-available/default
+sed -i "s/# allow CURRENT-SERVER-IP/allow $_cur_ip/g" /etc/nginx/conf.d/default.conf
 cp "$_assets"/zabbix/userparameter_nginx.conf "$_agent_conf_d"/
 mkdir /etc/zabbix/zabbix_agentd.scripts
 cp "$_assets"/zabbix/scripts/nginx-stat.py /etc/zabbix/zabbix_agentd.scripts/
@@ -86,8 +86,8 @@ ufw allow from "$_ip" to any port 22
 ufw allow from "$_ip" to any port 10050
 # ufw allow from "$_ip" to any port 10051
 
-rc-update add zabbix-agent
-service zabbix-agent restart
+rc-update add zabbix-agentd
+service zabbix-agentd restart
 
 echo -e "Zabbix-agent installed and configured, please add the host $_host_name in your zabbix-server"
 echo -e "And import requested templates in assets/zabbix/templates/"