From 18f5b6abfbb77274d88568293abd18da93c8a7cb Mon Sep 17 00:00:00 2001 From: Youngjin Han Date: Thu, 14 May 2020 00:08:42 +0900 Subject: [PATCH] Learning Circle : cdist #5 - update 2 --- youngjin.han/dot-cdist/type/__my_nginx_site/manifest | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/youngjin.han/dot-cdist/type/__my_nginx_site/manifest b/youngjin.han/dot-cdist/type/__my_nginx_site/manifest index 56e3762..0b17ddf 100755 --- a/youngjin.han/dot-cdist/type/__my_nginx_site/manifest +++ b/youngjin.han/dot-cdist/type/__my_nginx_site/manifest @@ -1,5 +1,17 @@ #!/bin/sh -e +os=$(cat "$__global/explorer/os") + +case "$os" in + devuan) + : + ;; + *) + echo "OS $os currently not supported" >&2 + exit 1 + ;; +esac + nginx_config_dir="/etc/nginx/conf.d" domain="$__object_id"