分发执行获取cdn域名或状态

分发执行获取cdn域名或状态

cat examine_cdn_domainName.sh 
#!/bin/bash
# Author : royoy
# Ver    : v2 
# Date   : 10/2019

conf_php=/data/xltyy/config/var.php

if [ "x$1" = "xcheck_info" ];then
        sed -n '/domain_static/{p;q}' $conf_php
else
        sed -n '/domain_static/{p;q}' $conf_php | grep -Po '(?<=https:\/\/)[^\/]+'
fi