From 200bfd7ad6acef5b9c2b8812bccf0cf551be60ca Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 16 Nov 2019 17:18:24 -0700 Subject: [PATCH] mount snippets directory if defined --- .vscode/numbered-bookmarks.json | 18 +----------------- ab-nginx.sh | 3 +++ 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/.vscode/numbered-bookmarks.json b/.vscode/numbered-bookmarks.json index f9b5185..4c08963 100644 --- a/.vscode/numbered-bookmarks.json +++ b/.vscode/numbered-bookmarks.json @@ -1,19 +1,3 @@ { - "bookmarks": [ - { - "fsPath": "$ROOTPATH$/ab-nginx.sh", - "bookmarks": [ - -1, - 29, - 86, - -1, - -1, - -1, - -1, - -1, - -1, - -1 - ] - } - ] + "bookmarks": [] } \ No newline at end of file diff --git a/ab-nginx.sh b/ab-nginx.sh index 804c710..0d6ac0b 100755 --- a/ab-nginx.sh +++ b/ab-nginx.sh @@ -130,6 +130,9 @@ fi if [ "$SERVERS_DIR" ]; then vmount="$vmount -v $SERVERS_DIR:/etc/nginx/sites" fi +if [ "$SNIPPETS_DIR" ]; then + vmount="$vmount -v $SNIPPETS_DIR:/etc/nginx/snippets" +fi if [ "$WEBROOT_DIR" ]; then vmount="$vmount -v $WEBROOT_DIR:/usr/share/nginx/html" fi