fix path for templating

This commit is contained in:
Robert Schumann
2018-03-31 23:16:22 +02:00
parent 8eab31e48a
commit 2278f45e21

View File

@@ -21,7 +21,7 @@ if [[ -v TEMPLATE_NGINX_HTML ]] ; then
value=$(echo "$i" | cut -d'=' -f2)
if [[ "$variable" != '%s' ]] ; then
replace='\$\$_'${variable}'_\$\$'
find /var/www/html -type f -not -path "/var/www/html/vendor/*" -exec sed -i -e 's#'${replace}'#'${value}'#g' {} \;
find /var/www/viewer -type f -exec sed -i -e 's#'${replace}'#'${value}'#g' {} \;
fi
done
fi