From 8c44ab91f9bfa90c37bc471b9b643fdbdb33ddb4 Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 20 Aug 2023 14:09:46 -0400 Subject: [PATCH] fixes for allowing editing of conf outside of VM --- .gitignore | 4 ++-- Vagrantfile | 9 ++++++--- openresty/README.md | 1 + 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index ca14973..31bc1f5 100755 --- a/.gitignore +++ b/.gitignore @@ -86,5 +86,5 @@ ops/cookbooks/vendor secrets.json secrets.js -.openresty/** -!.openresty/README.md +openresty/** +!openresty/README.md diff --git a/Vagrantfile b/Vagrantfile index b532461..0830cd8 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -132,8 +132,11 @@ Vagrant.configure("2") do |config| end config.vm.provision "shell", inline: <<~SHELL - # cp -a /etc/openresty/. /vagrant/openresty - # rm -rf /etc/openresty - # ln -s /vagrant/openresty /etc/openresty + cd /vagrant/openresty + shopt -s extglob + rm -frv !("README.md") + cp -a "/usr/local/openresty/nginx/conf/." /vagrant/openresty + rm -rf /usr/local/openresty/nginx/conf/ + ln -s /vagrant/openresty/ /usr/local/openresty/nginx/conf SHELL end diff --git a/openresty/README.md b/openresty/README.md index e69de29..2d9de21 100644 --- a/openresty/README.md +++ b/openresty/README.md @@ -0,0 +1 @@ +`#include sites-enabled/*;` \ No newline at end of file