Postagens

Reiniciar configurações de Postgresql sem reiniciar o serviço do banco de dados.

user# sudo su postgres postgres# pg_ctl reload se não achar esse diretorio tem como reiniciar diretamente pela tabela pg_reload_conf(): postgres@postgres-producao:~$ psql psql (11.5 (Debian 11.5-1.pgdg80+1), servidor 9.4.8) Digite "help" para ajuda. postgres=# select pg_reload_conf();  pg_reload_conf ----------------  t (1 registro) postgres=# quit;

script para instalar os requisitos do zimbra 8.8.15

#!/bin/bash -x #inicio zimbra mkdir -p /root/scripts/ mkdir -p /root/zimbra/ echo -e " yum install vim screen traceroute net-tools tcpdump nmap open-vm-tools -y \n yum install unzip net-tools sysstat openssh-clients perl-core libaio nmap-ncat libstdc++.so.6 vim wget bind-utils make gcc open-vm-tools -y \n yum install epel-release -y \n yum install python-requests -y \n yum remove postfix -y \n systemctl stop firewalld \n systemctl disable firewalld \n sed -i s/SELINUX=enforcing/SELINUX=disabled/ /etc/selinux/config \n setenforce 0 \n " > /root/scripts/instalar-zimbra.sh chmod +x /root/scripts/instalar-zimbra.sh /root/scripts/instalar-zimbra.sh cd /root/zimbra wget https://files.zimbra.com/downloads/8.8.15_GA/zcs-8.8.15_GA_3869.RHEL7_64.20190918004220.tgz --no-check-certificate exit 0

Script de Renovação de certificados letsencrypt Email ZIMBRA

Renovação de certificados letsencrypt Email ZIMBRA: #!/bin/bash #-----------DECLARACAO DE VARIAVEIS--------------------------------------------- CERTS_LETSENCRYPT=$(find /etc/letsencrypt/live/  -type d | grep exemplo.com.br) #DIRETORIO DE ARQUIVOS DO LETS ENCRYPT ZIMBRA_LETSENCRYPT='/opt/zimbra/ssl/letsencrypt'        #DIRETORIO DE ARQUIVOS ZIMBRA DO LETSENCRYPT ZIMBRA_SSL_COMM='/opt/zimbra/ssl/zimbra/commercial'     #DIRETORIO DE ARQUIVOS SSL ZIMBRA ZIMBRA_BACKUP='/root/backup/zimbra'                     #DIREOTORIO DE BACKUP DESTINO TIMESTAMP=$(date "+%Y%m%d")                             #VARIAVEL DE TEMPO PARA SCRIPT BACKUP_FOLDER="/root/backup/zimbra/zimbra-$TIMESTAMP" ####...