|
@@ -6,11 +6,17 @@
|
|
|
|
|
|
GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url}
|
|
|
|
|
|
-if [ $? == '0' ];then
|
|
|
+if [ $? != '0' ]
|
|
|
+then
|
|
|
+ echo "Cannot git clone the ${git_url}"; exit 1
|
|
|
# Производим рестор БД
|
|
|
- zcat /pki/iru/wild/infoclinica.ru.dump.gz | sqlite3 /var/lib/acme-dns/acme-dns.db
|
|
|
+# zcat /pki/iru/wild/infoclinica.ru.dump.gz | sqlite3 /var/lib/acme-dns/acme-dns.db
|
|
|
+# chmod 0600 /var/lib/acme-dns/acme-dns.db
|
|
|
+# Подкидываем конфигурационные файлы
|
|
|
+# cp /pki/iru/wild/acme-dns/infoclinica.ru.config.cfg /etc/acme-dns/config.cfg
|
|
|
else
|
|
|
- echo "Cannot git clone the ${git_url}"; exit 1
|
|
|
+ echo "git clone the ${git_url} done"
|
|
|
+ echo "Starting ACME-DNS"
|
|
|
fi
|
|
|
|
|
|
exec "$@"
|