]> git.giorgioravera.it Git - scripts.git/commitdiff
Added server node
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 26 Feb 2022 10:04:37 +0000 (11:04 +0100)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Sat, 26 Feb 2022 10:04:37 +0000 (11:04 +0100)
update_certificate

index 5b339ef1bbe737d1f41c5abf4bf5ec39473bb181..2a62bf0d16645454690c54504fb57249d9ce26ac 100755 (executable)
@@ -52,6 +52,20 @@ function update_certificate () {
        fi
 }
 
+# Update Server
+function update_server() {
+       echo " ------------------------------- "
+       echo "| Updating Server Certificate   |"
+       echo " ------------------------------- "
+       host="server.giorgioravera.it"
+       user="root"
+       #command="systemctl restart slapd && sleep 1 && systemctl restart apache2 postfix dovecot proftpd"
+       #command="systemctl restart apache2 postfix dovecot proftpd slapd"
+       command="systemctl restart apache2 postfix dovecot proftpd && systemctl restart slapd"
+       copy_certificate
+       echo ""
+}
+
 # Update Docker
 function update_docker () {
        echo " ------------------------------- "
@@ -142,6 +156,7 @@ function update_pve () {
        echo ""
 }
 
+update_server
 update_docker
 update_asterisk
 update_nas