Update sites.inc
This commit is contained in:
@@ -585,6 +585,12 @@ SITEINFO(){
|
||||
else
|
||||
echo -e "${idsCL[LightGreen]}Local NGINX Sites ${idsCL[Default]}"
|
||||
fi
|
||||
if [ "${onefacline}" == "" ]; then
|
||||
onefacline=$(ssh root@${NM_AUTHELIA_IP} grep -Fn one_factor /mnt/web-data/authelia/config/configuration.yml | sort | tail -n1)
|
||||
onefacline=${onefacline%%:*}
|
||||
twofacline=$(ssh root@${NM_AUTHELIA_IP} grep -Fn two_factor /mnt/web-data/authelia/config/configuration.yml | sort | tail -n1)
|
||||
twofacline=${twofacline%%:*}
|
||||
fi
|
||||
|
||||
gosite=${NM_NGINXPATH[${RUN_NODE_TYPE}]}/sites-enabled
|
||||
declare -A SITELIST
|
||||
@@ -628,12 +634,7 @@ SITEINFO(){
|
||||
# [ "$(grep '\#include conf.d/include/secure-access.conf' ${sitefile})" != "" ] && lock='' || lock='Yes'
|
||||
|
||||
if [ "$(grep '\#include conf.d/include/secure-access.conf' ${sitefile})" == "" ] && [ "$(grep 'include conf.d/include/secure-access.conf' ${sitefile})" != "" ]; then
|
||||
if [ "${onefacline}" == "" ]; then
|
||||
onefacline=$(ssh root@${NM_AUTHELIA_IP} grep -Fn one_factor /mnt/web-data/authelia/config/configuration.yml | sort | tail -n1)
|
||||
onefacline=${onefacline%%:*}
|
||||
twofacline=$(ssh root@${NM_AUTHELIA_IP} grep -Fn two_factor /mnt/web-data/authelia/config/configuration.yml | sort | tail -n1)
|
||||
twofacline=${twofacline%%:*}
|
||||
fi
|
||||
|
||||
sitefacline=$(ssh root@${NM_AUTHELIA_IP} grep -Fn ${site} /mnt/web-data/authelia/config/configuration.yml)
|
||||
sitefacline=${sitefacline%%:*}
|
||||
if [ "${sitefacline}" == "" ]; then
|
||||
|
||||
Reference in New Issue
Block a user