如何授权到期,或者在授权前安装程序,可以登录主控,执行如下命令获取授权:
# 获取授权
source /opt/venv/bin/activate;
cd /opt/cdnhao/master/view;
ret=`python -c "import util;print util.get_auth_code()" || true`;
[[ $ret == "(True, None)" ]] && echo "已获取到授权" || echo "未授权,原因:"$ret;
deactivate;
如何授权到期,或者在授权前安装程序,可以登录主控,执行如下命令获取授权:
# 获取授权
source /opt/venv/bin/activate;
cd /opt/cdnhao/master/view;
ret=`python -c "import util;print util.get_auth_code()" || true`;
[[ $ret == "(True, None)" ]] && echo "已获取到授权" || echo "未授权,原因:"$ret;
deactivate;