Update mw.tpl

pull/109/head
Mr Chen 6 years ago
parent 7fe472f365
commit d09d17165c
  1. 24
      scripts/init.d/mw.tpl

@ -132,4 +132,28 @@ case "$1" in
mw_start;; mw_start;;
'status') mw_status;; 'status') mw_status;;
'logs') error_logs;; 'logs') error_logs;;
'default')
cd $mw_path
port=$(cat $mw_path/data/port.pl)
password=$(cat $mw_path/data/default.pl)
if [ -f $mw_path/data/domain.conf ];then
address=$(cat $mw_path/data/domain.conf)
fi
if [ -f $mw_path/data/admin_path.pl ];then
auth_path=$(cat $mw_path/data/admin_path.pl)
fi
if [ "$address" = "" ];then
address=$(curl -sS --connect-timeout 10 -m 60 https://www.bt.cn/Api/getIpAddress)
fi
echo -e "=================================================================="
echo -e "\033[32mMW-Panel default info!\033[0m"
echo -e "=================================================================="
echo "MW-Panel-URL: http://$address:$port$auth_path"
echo -e `python $mw_path/tools.py username`
echo -e "password: $password"
echo -e "\033[33mWarning:\033[0m"
echo -e "\033[33mIf you cannot access the panel, \033[0m"
echo -e "\033[33mrelease the following port (8888|888|80|443|20|21) in the security group\033[0m"
echo -e "=================================================================="
;;
esac esac
Loading…
Cancel
Save