2023-01-18 12:13:48 +01:00
|
|
|
#!/bin/bash
|
|
|
|
# Installation de Kaz
|
|
|
|
|
|
|
|
if [ -z "${KAZGUARD}" ] ; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2023-01-27 21:15:36 +01:00
|
|
|
snster -c /root/snster-kaz start
|
2023-01-18 12:13:48 +01:00
|
|
|
sleep 10
|
2023-01-27 21:15:36 +01:00
|
|
|
snster -c /root/snster-kaz attach kaz-prod -x /mnt/snster/root/snster-kaz/kaz/prod/kaz.sh
|
2023-01-18 12:13:48 +01:00
|
|
|
|
|
|
|
# On crée quelques mails
|
|
|
|
SETUP_MAIL="docker exec mailServ setup"
|
2023-01-27 21:15:36 +01:00
|
|
|
snster -c /root/snster-kaz attach kaz-prod -x "${SETUP_MAIL} email add contact1@kaz.sns toto"
|
|
|
|
snster -c /root/snster-kaz attach kaz-prod -x "${SETUP_MAIL} email add contact2@kaz.sns toto"
|
|
|
|
snster -c /root/snster-kaz attach kaz-prod -x "${SETUP_MAIL} email add contact3@kaz.sns toto"
|
|
|
|
snster -c /root/snster-kaz attach kaz-prod -x "${SETUP_MAIL} email add contact4@kaz.sns toto"
|
2023-01-18 12:13:48 +01:00
|
|
|
|
|
|
|
echo -e '#!/bin/sh\nsnster -c /root/snster-kaz start' >> /etc/rc.local
|
|
|
|
chmod +x /etc/rc.local
|