nginx-config/deploy.sh

24 lines
528 B
Bash
Raw Normal View History

2023-01-28 10:46:57 +00:00
#!/bin/bash
set -e
CUR=`pwd`
for CONF in `find ${CUR}/sites-available/ -type f` ; do
ln -f -s ${CONF} /etc/nginx/sites-enabled/
done
for CONF in `find ${CUR}/stream-available/ -type f` ; do
ln -f -s ${CONF} /etc/nginx/sites-enabled/
done
for CONF in `find ${CUR}/consul-template.d/conf/ -type f -name "*.conf"` ; do
ln -f -s ${CONF} /etc/consul-template.d/conf/
done
for TMPL in `find ${CUR}/consul-template.d/templates/ -type f -name "*.tmpl"` ; do
ln -f -s ${TMPL} /etc/consul-template.d/templates/
done
exit 0