Create required folder.
This commit is contained in:
parent
45cd16c240
commit
d7145be3b4
1 changed files with 1 additions and 0 deletions
|
@ -25,6 +25,7 @@ sub_env_vars="$(cat /environment_variables.txt)"
|
||||||
echo "Enabling servers"
|
echo "Enabling servers"
|
||||||
(
|
(
|
||||||
pushd "/etc/nginx/sites-available" || exit $?
|
pushd "/etc/nginx/sites-available" || exit $?
|
||||||
|
mkdir "../sites-enabled" || exit $?
|
||||||
for f in *.conf; do
|
for f in *.conf; do
|
||||||
envsubst "$sub_env_vars" < "$f" > "../sites-enabled/$f"
|
envsubst "$sub_env_vars" < "$f" > "../sites-enabled/$f"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue