21 lines
865 B
Bash
21 lines
865 B
Bash
#!/bin/bash
|
|
# Installation de Kaz
|
|
|
|
if [ -z "${KAZGUARD}" ] ; then
|
|
exit 1
|
|
fi
|
|
|
|
snster -c /root/snster-kaz -t /root/templates start
|
|
sleep 10
|
|
snster -c /root/snster-kaz -t /root/templates attach kaz-prod -x /mnt/snster/root/snster-kaz/kaz/prod/kaz.sh
|
|
|
|
# On crée quelques mails
|
|
SETUP_MAIL="docker exec mailServ setup"
|
|
snster -c /root/snster-kaz -t /root/templates attach kaz-prod -x "${SETUP_MAIL} email add contact1@kaz.sns toto"
|
|
snster -c /root/snster-kaz -t /root/templates attach kaz-prod -x "${SETUP_MAIL} email add contact2@kaz.sns toto"
|
|
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
|