From 6fcd322549fc351dbc1114902482f6f019b2845d Mon Sep 17 00:00:00 2001 From: Jesse Nickles Date: Thu, 26 Jul 2018 03:34:27 -0500 Subject: [PATCH] Update ss-install.txt --- ss-install.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ss-install.txt b/ss-install.txt index 30fba2ddfb60..a86dd020876e 100644 --- a/ss-install.txt +++ b/ss-install.txt @@ -236,6 +236,11 @@ rm -R -f /tmp/nginx-conf.txt /tmp/nginx-conf /tmp/nginx.conf cd /tmp/ wget --no-cache http://mirrors.slickstack.io/nginx/nginx-conf.txt +## replace placeholders with slickstack variables ## +sed -i "s/@CACHEMEMORY/${cachememory}/g" /tmp/nginx-conf.txt +sed -i "s/@CACHEINACTIVE/${cacheinactive}/g" /tmp/nginx-conf.txt +sed -i "s/@CACHEMAXSIZE/${cachemaxsize}/g" /tmp/nginx-conf.txt + ## rename files ## mv nginx-conf.txt nginx.conf @@ -270,6 +275,7 @@ fi ## replace @DOMAIN placeholder with slickstack variable ## sed -i "s/@DOMAIN/${domain}/g" /tmp/default.txt +sed -i "s/@CACHEVALID/${cachevalid}/g" /tmp/default.txt ## enable or disable fastcgi cache ## ## set skip_cache default to 0 only if fastcgi cache enabled in ss-config ##