Sauvegarde

This commit is contained in:
Clément ROUSSEAU 2018-12-09 14:31:25 +01:00
parent 30e945759e
commit dc48c390e3
1 changed files with 9 additions and 7 deletions

View File

@ -215,10 +215,12 @@ fi
echo "############################"
echo "# Redémarrage des services #"
echo "############################"
if [ $VPN == 'O' ];
if [ $MAIL == 'O' ];
then
service openvpn restart
echo "-- OpenVPN redémarré !"
service postfix restart
echo "-- Postfix redémarré !"
service dovecot restart
echo "-- dovecot redémarré !"
fi
cd $SOURCE
@ -246,7 +248,7 @@ then
echo -e "\n\t\t\t\t\t\t${HOSTNAME^^}" >> /etc/motd
echo '' >> /etc/motd
fi
if [ $VPN == 'O' ];
if [ $MAIL == 'O' ];
then
echo "-- Service Mail" >> /etc/motd
fi
@ -254,9 +256,9 @@ echo "#########################"
echo "# Fin de l'installation #"
echo "#########################"
echo "Vous disposé maintenant des services suivant : "
if [ $VPN == 'O' ];
if [ $MAIL == 'O' ];
then
echo "-- Service VPN"
echo "Vous pouvez vous connecter au serveur avec un client grâce à l'archive présente dans /etc/openvpn/clientconf/$VPN_USER.zip"
echo "-- Service MAIL"
echo "Vous pouvez vous connecter à l'interface web d'administration PostfixAdmin "
echo "Un redémarrage est nécessaire !"
fi