From d71c219a1ee6caac03654f47db8e8a839e0f8bc4 Mon Sep 17 00:00:00 2001 From: Francois Lesueur Date: Fri, 23 Dec 2022 18:23:33 +0100 Subject: [PATCH] smallies --- files/provision.sh | 2 ++ files/snster-kaz/isp-a/home/clawsmail/claws-mail/accountrc | 4 ++-- files/snster-kaz/kaz/prod/provision.sh | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/files/provision.sh b/files/provision.sh index d00dc32..47ee43c 100755 --- a/files/provision.sh +++ b/files/provision.sh @@ -202,6 +202,8 @@ EOF snster -c /root/snster-kaz -t /root/templates attach kaz-prod -x "${SETUP_MAIL} email add contact3@kaz.sns toto" snster -c /root/snster-kaz -t /root/templates attach kaz-prod -x "${SETUP_MAIL} email add contact4@kaz.sns toto" + echo -e '#!/bin/sh\nsnster -c /root/snster-kaz start' >> /etc/rc.local + chmod +x /etc/rc.local echo "########## ********** End Vagrant $(date +%D-%T)" ) > >(tee ${DebugLog}stdout.log) 2> >(tee ${DebugLog}stderr.log >&2) diff --git a/files/snster-kaz/isp-a/home/clawsmail/claws-mail/accountrc b/files/snster-kaz/isp-a/home/clawsmail/claws-mail/accountrc index 292ce2b..fa6fbfc 100644 --- a/files/snster-kaz/isp-a/home/clawsmail/claws-mail/accountrc +++ b/files/snster-kaz/isp-a/home/clawsmail/claws-mail/accountrc @@ -1,7 +1,7 @@ [Account: $number] domain=kaz.local name=$name@$domainname -account_name=IMAP +account_name=$name@$domainname is_default=1 address=$name@$domainname organization= @@ -76,7 +76,7 @@ ssl_pop=0 ssl_imap=0 ssl_nntp=0 ssl_smtp=0 -ssl_certs_auto_accept=0 +ssl_certs_auto_accept=1 use_nonblocking_ssl=1 in_ssl_client_cert_file= out_ssl_client_cert_file= diff --git a/files/snster-kaz/kaz/prod/provision.sh b/files/snster-kaz/kaz/prod/provision.sh index 3337a2f..9895f32 100644 --- a/files/snster-kaz/kaz/prod/provision.sh +++ b/files/snster-kaz/kaz/prod/provision.sh @@ -64,6 +64,10 @@ fi # ./kaz.sh +# On démarre au boot +echo -e '#!/bin/sh\n/kaz/bin/container.sh start' >> /etc/rc.local +chmod +x /etc/rc.local + # clear apt cache DEBIAN_FRONTEND=noninteractive apt-get autoremove -y DEBIAN_FRONTEND=noninteractive apt-get clean