1
0
Fork 0
scripts/sysadmin/reload_services.sh
Luca Beltrame c4f7279f2e
Restructure directory layout
To make this better than the unorganized mess it used to be.
2021-01-03 15:26:29 +01:00

14 lines
547 B
Bash
Executable file

#!/bin/bash
systemctl reload nginx
cp /etc/letsencrypt/live/heavensinferno.net/fullchain.pem /home/mailcow/mailcow-dockerized/data/assets/ssl/cert.pem
cp /etc/letsencrypt/live/heavensinferno.net/privkey.pem /home/mailcow/mailcow-dockerized/data/assets/ssl/key.pem
postfix_c=$(docker ps -qaf name=postfix-mailcow)
dovecot_c=$(docker ps -qaf name=dovecot-mailcow)
nginx_c=$(docker ps -qaf name=nginx-mailcow)
docker restart ${postfix_c} ${dovecot_c} ${nginx_c}
if [ $(systemctl is-active mumble-server) ];
then
systemctl restart mumble-server
fi