Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/scripts/init.d/mw.tpl

625 lines
17 KiB

7 years ago
#!/bin/bash
# chkconfig: 2345 55 25
# description: MW Cloud Service
### BEGIN INIT INFO
3 years ago
# Provides: Midoks
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts mw
# Description: starts the mw
### END INIT INFO
2 years ago
RED='\033[31m'
GREEN='\033[32m'
YELLOW='\033[33m'
BLUE='\033[34m'
PLAIN='\033[0m'
BOLD='\033[1m'
SUCCESS='[\033[32mOK\033[0m]'
COMPLETE='[\033[32mDONE\033[0m]'
WARN='[\033[33mWARN\033[0m]'
ERROR='[\033[31mERROR\033[0m]'
WORKING='[\033[34m*\033[0m]'
4 years ago
PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
2 years ago
export LANG=en_US.UTF-8
7 years ago
6 months ago
PANEL_DIR={$SERVER_PATH}
ROOT_PATH=$(dirname "$PANEL_DIR")
6 months ago
PATH=$PATH:${PANEL_DIR}/bin
3 years ago
6 months ago
if [ -f ${PANEL_DIR}/bin/activate ];then
source ${PANEL_DIR}/bin/activate
2 years ago
if [ "$?" != "0" ];then
echo "load local python env fail!"
fi
4 years ago
fi
3 years ago
mw_start_panel()
{
isStart=`ps -ef|grep 'gunicorn -c setting.py app:app' |grep -v grep|awk '{print $2}'`
if [ "$isStart" == '' ];then
3 years ago
echo -e "starting mw-panel... \c"
6 months ago
cd ${PANEL_DIR}/web && gunicorn -c setting.py app:app
port=$(cat ${PANEL_DIR}/data/port.pl)
3 years ago
isStart=""
while [[ "$isStart" == "" ]];
do
echo -e ".\c"
sleep 0.5
isStart=$(lsof -n -P -i:$port|grep LISTEN|grep -v grep|awk '{print $2}'|xargs)
let n+=1
if [ $n -gt 60 ];then
3 years ago
break;
7 years ago
fi
3 years ago
done
if [ "$isStart" == '' ];then
3 years ago
echo -e "\033[31mfailed\033[0m"
echo '------------------------------------------------------'
6 months ago
tail -n 20 ${PANEL_DIR}/logs/panel_error.log
3 years ago
echo '------------------------------------------------------'
echo -e "\033[31mError: mw-panel service startup failed.\033[0m"
return;
3 years ago
fi
echo -e "\033[32mdone\033[0m"
7 years ago
else
3 years ago
echo "starting mw-panel... mw(pid $(echo $isStart)) already running"
7 years ago
fi
3 years ago
}
7 years ago
3 years ago
mw_start_task()
{
6 months ago
isStart=$(ps aux |grep 'panel_task.py'|grep -v grep|awk '{print $2}')
7 years ago
if [ "$isStart" == '' ];then
3 years ago
echo -e "starting mw-tasks... \c"
6 months ago
cd ${PANEL_DIR} && python3 panel_task.py >> ${PANEL_DIR}/logs/panel_task.log 2>&1 &
3 years ago
sleep 0.3
6 months ago
isStart=$(ps aux |grep 'panel_task.py'|grep -v grep|awk '{print $2}')
3 years ago
if [ "$isStart" == '' ];then
3 years ago
echo -e "\033[31mfailed\033[0m"
echo '------------------------------------------------------'
6 months ago
tail -n 20 ${PANEL_DIR}/logs/panel_task.log
3 years ago
echo '------------------------------------------------------'
echo -e "\033[31mError: mw-tasks service startup failed.\033[0m"
return;
3 years ago
fi
echo -e "\033[32mdone\033[0m"
7 years ago
else
3 years ago
echo "starting mw-tasks... mw-tasks (pid $(echo $isStart)) already running"
7 years ago
fi
7 years ago
}
3 years ago
mw_start()
{
5 months ago
mw_start_task
5 months ago
mw_start_panel
3 years ago
}
7 years ago
5 months ago
# /www/server/mdserver-web/logs/panel_task.lock && service mw restart_task
3 years ago
mw_stop_task()
7 years ago
{
6 months ago
if [ -f ${PANEL_DIR}/logs/panel_task.lock ];then
3 years ago
echo -e "\033[32mthe task is running and cannot be stopped\033[0m"
5 months ago
return 0
fi
3 years ago
echo -e "stopping mw-tasks... \c";
6 months ago
pids=$(ps aux | grep 'panel_task.py'|grep -v grep|awk '{print $2}')
7 years ago
arr=($pids)
for p in ${arr[@]}
do
2 years ago
kill -9 $p > /dev/null 2>&1
7 years ago
done
5 months ago
zzpids=$(ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' | awk '{print $2}')
arr=($zzpids)
for p in ${arr[@]}
do
kill -9 $p > /dev/null 2>&1
done
7 years ago
echo -e "\033[32mdone\033[0m"
3 years ago
}
7 years ago
3 years ago
mw_stop_panel()
{
3 years ago
echo -e "stopping mw-panel... \c";
2 years ago
6 months ago
pidfile=${PANEL_DIR}/logs/mw.pid
2 years ago
if [ -f $pidfile ];then
pid=`cat $pidfile`
kill -9 $pid > /dev/null 2>&1
rm -f $pidfile
fi
6 months ago
ARR=`ps aux|grep 'gunicorn -c setting.py app:app'|grep -v grep|awk '{print $2}'`
for p in ${ARR[@]}
7 years ago
do
2 years ago
kill -9 $p > /dev/null 2>&1
7 years ago
done
6 months ago
PLIST=`ps -ef|grep app:app |grep -v grep|awk '{print $2}'`
6 months ago
ARR=($PLIST)
for i in ${ARR[@]}
6 months ago
do
kill -9 $i > /dev/null 2>&1
done
7 years ago
echo -e "\033[32mdone\033[0m"
}
3 years ago
mw_stop()
{
mw_stop_task
3 years ago
mw_stop_panel
3 years ago
}
7 years ago
mw_status()
{
3 years ago
isStart=$(ps aux|grep 'gunicorn -c setting.py app:app'|grep -v grep|awk '{print $2}')
if [ "$isStart" != '' ];then
echo -e "\033[32mmw (pid $(echo $isStart)) already running\033[0m"
else
echo -e "\033[31mmw not running\033[0m"
fi
6 months ago
isStart=$(ps aux |grep 'panel_task.py'|grep -v grep|awk '{print $2}')
3 years ago
if [ "$isStart" != '' ];then
echo -e "\033[32mmw-task (pid $isStart) already running\033[0m"
else
echo -e "\033[31mmw-task not running\033[0m"
fi
7 years ago
}
mw_reload()
{
isStart=$(ps aux|grep 'gunicorn -c setting.py app:app'|grep -v grep|awk '{print $2}')
if [ "$isStart" != '' ];then
3 years ago
echo -e "reload mw... \c";
7 years ago
arr=`ps aux|grep 'gunicorn -c setting.py app:app'|grep -v grep|awk '{print $2}'`
for p in ${arr[@]}
do
kill -9 $p
done
6 months ago
cd ${PANEL_DIR}/web && gunicorn -c setting.py app:app
7 years ago
isStart=`ps aux|grep 'gunicorn -c setting.py app:app'|grep -v grep|awk '{print $2}'`
if [ "$isStart" == '' ];then
3 years ago
echo -e "\033[31mfailed\033[0m"
echo '------------------------------------------------------'
tail -n 20 $mw_path/logs/error.log
echo '------------------------------------------------------'
echo -e "\033[31mError: mw service startup failed.\033[0m"
return;
7 years ago
fi
echo -e "\033[32mdone\033[0m"
else
echo -e "\033[31mmw not running\033[0m"
7 years ago
mw_start
7 years ago
fi
}
2 years ago
mw_close(){
6 months ago
echo 'True' > ${PANEL_DIR}/data/close.pl
2 years ago
}
mw_open()
{
6 months ago
if [ -f ${PANEL_DIR}/data/close.pl ];then
rm -rf ${PANEL_DIR}/data/close.pl
2 years ago
fi
}
mw_unbind_domain()
{
6 months ago
if [ -f ${PANEL_DIR}/data/bind_domain.pl ];then
rm -rf ${PANEL_DIR}/data/bind_domain.pl
fi
}
12 months ago
mw_unbind_ssl()
{
6 months ago
if [ -f ${PANEL_DIR}/local ];then
rm -rf ${PANEL_DIR}/local
12 months ago
fi
if [ -f $mw_path/nginx ];then
rm -rf $mw_path/nginx
fi
if [ -f $mw_path/ssl/choose.pl ];then
rm -rf $mw_path/ssl/choose.pl
fi
}
7 years ago
error_logs()
{
6 months ago
tail -n 100 ${PANEL_DIR}/logs/panel_error.log
7 years ago
}
3 years ago
mw_update()
{
6 months ago
if [ -f ${PANEL_DIR}/task.py ];then
6 months ago
echo "与后续版本差异太大,不再提供更新"
exit 0
fi
2 years ago
LOCAL_ADDR=common
1 year ago
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
2 years ago
LOCAL_ADDR=cn
fi
1 year ago
2 years ago
if [ "$LOCAL_ADDR" == "common" ];then
2 years ago
curl --insecure -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/update.sh | bash
2 years ago
else
1 year ago
curl --insecure -fsSL https://code.midoks.icu/midoks/mdserver-web/raw/branch/dev/scripts/update.sh | bash
3 years ago
fi
3 years ago
}
mw_update_dev()
10 months ago
{
6 months ago
if [ -f ${PANEL_DIR}/task.py ];then
6 months ago
echo "与后续版本差异太大,不再提供更新"
exit 0
fi
10 months ago
LOCAL_ADDR=common
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
LOCAL_ADDR=cn
fi
if [ "$LOCAL_ADDR" == "common" ];then
curl --insecure -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update_dev.sh | bash
else
curl --insecure -fsSL https://code.midoks.icu/midoks/mdserver-web/raw/branch/dev/scripts/update_dev.sh | bash
fi
6 months ago
cd ${PANEL_DIR}
10 months ago
}
mw_update_venv()
3 years ago
{
6 months ago
rm -rf ${PANEL_DIR}/bin
rm -rf ${PANEL_DIR}/lib64
rm -rf ${PANEL_DIR}/lib
10 months ago
2 years ago
LOCAL_ADDR=common
2 years ago
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
2 years ago
LOCAL_ADDR=cn
fi
2 years ago
2 years ago
if [ "$LOCAL_ADDR" == "common" ];then
2 years ago
curl --insecure -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/update_dev.sh | bash
2 years ago
else
1 year ago
curl --insecure -fsSL https://code.midoks.icu/midoks/mdserver-web/raw/branch/dev/scripts/update_dev.sh | bash
3 years ago
fi
6 months ago
cd ${PANEL_DIR}
3 years ago
}
mw_mirror()
{
2 years ago
LOCAL_ADDR=common
1 year ago
cn=$(curl -fsSL -m 10 -s http://ipinfo.io/json | grep "\"country\": \"CN\"")
if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
2 years ago
LOCAL_ADDR=cn
fi
1 year ago
2 years ago
if [ "$LOCAL_ADDR" == "common" ];then
2 years ago
bash <(curl --insecure -sSL https://raw.githubusercontent.com/midoks/change-linux-mirrors/main/change-mirrors.sh)
2 years ago
else
bash <(curl --insecure -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)
fi
6 months ago
cd ${ROOT_PATH}
}
mw_install_app()
{
bash $mw_path/scripts/quick/app.sh
}
3 years ago
mw_close_admin_path(){
if [ -f $mw_path/data/admin_path.pl ]; then
rm -rf $mw_path/data/admin_path.pl
fi
}
3 years ago
mw_force_kill()
{
PLIST=`ps -ef|grep app:app |grep -v grep|awk '{print $2}'`
for i in $PLIST
do
kill -9 $i
done
pids=`ps -ef|grep task.py | grep -v grep |awk '{print $2}'`
arr=($pids)
for p in ${arr[@]}
do
kill -9 $p
done
}
3 years ago
mw_debug(){
3 years ago
mw_stop
3 years ago
mw_force_kill
3 years ago
port=7200
6 months ago
if [ -f ${PANEL_DIR}/data/port.pl ];then
port=$(cat ${PANEL_DIR}/data/port.pl)
3 years ago
fi
3 years ago
6 months ago
if [ -d ${PANEL_DIR}/web ];then
cd ${PANEL_DIR}/web
3 years ago
fi
5 months ago
# gunicorn -b :$port -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 app:app
gunicorn -b :$port -k eventlet -w 1 app:app
3 years ago
}
2 years ago
function AutoSizeStr(){
NAME_STR=$1
NAME_NUM=$2
NAME_STR_LEN=`echo "$NAME_STR" | wc -L`
NAME_NUM_LEN=`echo "$NAME_NUM" | wc -L`
fix_len=35
remaining_len=`expr $fix_len - $NAME_STR_LEN - $NAME_NUM_LEN`
FIX_SPACE=' '
for ((ass_i=1;ass_i<=$remaining_len;ass_i++))
do
FIX_SPACE="$FIX_SPACE "
done
echo -e " ❖ ${1}${FIX_SPACE}${2})"
}
2 years ago
mw_connect_mysql(){
2 years ago
# choose mysql login
declare -A DB_TYPE
if [ -d "${ROOT_PATH}/mysql" ];then
DB_TYPE["mysql"]="mysql"
fi
if [ -d "${ROOT_PATH}/mariadb" ];then
DB_TYPE["mariadb"]="mariadb"
fi
if [ -d "${ROOT_PATH}/mysql-apt" ];then
DB_TYPE["mysql-apt"]="mysql-apt"
fi
if [ -d "${ROOT_PATH}/mysql-yum" ];then
DB_TYPE["mysql-yum"]="mysql-yum"
fi
SOURCE_LIST_KEY_SORT_TMP=$(echo ${!DB_TYPE[@]} | tr ' ' '\n' | sort -n)
SOURCE_LIST_KEY=(${SOURCE_LIST_KEY_SORT_TMP//'\n'/})
SOURCE_LIST_LEN=${#DB_TYPE[*]}
2 years ago
if [ "$SOURCE_LIST_LEN" == "0" ]; then
echo -e "no data!"
exit 1
fi
2 years ago
cm_i=0
for M in ${SOURCE_LIST_KEY[@]}; do
num=`expr $cm_i + 1`
AutoSizeStr "${M}" "$num"
cm_i=`expr $cm_i + 1`
done
CHOICE_A=$(echo -e "\n${BOLD}└─ Please select and enter the database you want to log in to [ 1-${SOURCE_LIST_LEN} ]:${PLAIN}")
read -p "${CHOICE_A}" INPUT
if [ "$INPUT" == "" ]; then
2 years ago
INPUT=1
2 years ago
fi
if [ "$INPUT" -lt "0" ] || [ "$INPUT" -gt "${SOURCE_LIST_LEN}" ]; then
echo -e "\nBoundary error not selected!"
exit 1
fi
INPUT=`expr $INPUT - 1`
INPUT_KEY=${SOURCE_LIST_KEY[$INPUT]}
CHOICE_DB=${DB_TYPE[$INPUT_KEY]}
echo "login to ${CHOICE_DB}:"
12 months ago
pwd=$(cd ${ROOT_PATH}/mdserver-web && python3 ${ROOT_PATH}/mdserver-web/plugins/${CHOICE_DB}/index.py root_pwd)
2 years ago
if [ "$CHOICE_DB" == "mysql" ];then
${ROOT_PATH}/mysql/bin/mysql -uroot -p"${pwd}"
fi
2 years ago
if [ "$CHOICE_DB" == "mariadb" ];then
2 years ago
${ROOT_PATH}/mariadb/bin/mariadb -S ${ROOT_PATH}/mariadb/mysql.sock -uroot -p"${pwd}"
2 years ago
fi
2 years ago
if [ "$CHOICE_DB" == "mysql-apt" ];then
2 years ago
${ROOT_PATH}/mysql-apt/bin/usr/bin/mysql -S ${ROOT_PATH}/mysql-apt/mysql.sock -uroot -p"${pwd}"
2 years ago
fi
2 years ago
if [ "$CHOICE_DB" == "mysql-yum" ];then
${ROOT_PATH}/mysql-yum/bin/usr/bin/mysql -S ${ROOT_PATH}/mysql-yum/mysql.sock -uroot -p"${pwd}"
fi
7 months ago
}
mw_connect_pgdb(){
if [ ! -d "${ROOT_PATH}/postgresql" ];then
echo -e "postgresql not install!"
exit 1
fi
2 years ago
6 months ago
pwd=$(cd ${PANEL_DIR} && python3 ${PANEL_DIR}/plugins/postgresql/index.py root_pwd)
7 months ago
export PGPASSWORD=${pwd}
echo "${ROOT_PATH}/postgresql/bin/psql -U postgres -W"
7 months ago
${ROOT_PATH}/postgresql/bin/psql -U postgres -W
2 years ago
}
12 months ago
9 months ago
mw_mongodb(){
CONF="${ROOT_PATH}/mongodb/mongodb.conf"
if [ ! -f "$CONF" ]; then
echo -e "not install mongodb!"
exit 1
fi
MGDB_PORT=$(cat $CONF |grep port|grep -v '#'|awk '{print $2}')
9 months ago
MGDB_AUTH=$(cat $CONF |grep authorization | grep -v '#'|awk '{print $2}')
AUTH_STR=""
if [[ "$MGDB_AUTH" == "enabled" ]];then
6 months ago
pwd=$(cd ${PANEL_DIR} && python3 ${PANEL_DIR}/plugins/mongodb/index.py root_pwd)
9 months ago
AUTH_STR="-u root -p ${pwd}"
fi
CLIEXEC="${ROOT_PATH}/mongodb/bin/mongosh --port ${MGDB_PORT} ${AUTH_STR}"
9 months ago
echo $CLIEXEC
${CLIEXEC}
9 months ago
}
12 months ago
mw_redis(){
CONF="${ROOT_PATH}/redis/redis.conf"
12 months ago
if [ ! -f "$CONF" ]; then
echo -e "not install redis!"
exit 1
fi
12 months ago
REDISPORT=$(cat $CONF |grep port|grep -v '#'|awk '{print $2}')
REDISPASS=$(cat $CONF |grep requirepass|grep -v '#'|awk '{print $2}')
if [ "$REDISPASS" != "" ];then
REDISPASS=" -a $REDISPASS"
fi
CLIEXEC="${ROOT_PATH}/redis/bin/redis-cli -p $REDISPORT$REDISPASS"
echo $CLIEXEC
${CLIEXEC}
}
2 years ago
mw_venv(){
6 months ago
cd ${PANEL_DIR} && source bin/activate
2 years ago
}
2 years ago
mw_clean_lib(){
6 months ago
cd ${PANEL_DIR} && rm -rf lib
cd ${PANEL_DIR} && rm -rf lib64
cd ${PANEL_DIR} && rm -rf bin
cd ${PANEL_DIR} && rm -rf include
2 years ago
}
6 months ago
mw_default(){
cd ${PANEL_DIR}
port=7200
5 months ago
scheme=$(python3 ${PANEL_DIR}/panel_tools.py panel_ssl_type)
6 months ago
if [ -f ${PANEL_DIR}/data/port.pl ];then
port=$(cat ${PANEL_DIR}/data/port.pl)
fi
5 months ago
if [ ! -f ${PANEL_DIR}/data/default.pl ];then
echo -e "\033[33mInstall Failed\033[0m"
exit 1
fi
6 months ago
password=$(cat ${PANEL_DIR}/data/default.pl)
6 months ago
6 months ago
admin_path=$(cd ${PANEL_DIR} && python3 ${PANEL_DIR}/panel_tools.py admin_path)
6 months ago
if [ "$address" == "" ];then
6 months ago
v4=$(python3 ${PANEL_DIR}/panel_tools.py getServerIp 4)
v6=$(python3 ${PANEL_DIR}/panel_tools.py getServerIp 6)
6 months ago
if [ "$v4" != "" ] && [ "$v6" != "" ]; then
if [ ! -f ${PANEL_DIR}/data/ipv6.pl ];then
echo 'True' > ${PANEL_DIR}/data/ipv6.pl
mw_stop
mw_start
fi
6 months ago
address="MW-PANEL-URL-IPV4: ${scheme}://$v4:$port$admin_path \nMW-PANEL-URL-IPV6: ${scheme}://[$v6]:$port$admin_path"
6 months ago
elif [ "$v4" != "" ]; then
6 months ago
address="MW-PANEL-URL: ${scheme}://$v4:$port$admin_path"
6 months ago
elif [ "$v6" != "" ]; then
if [ ! -f ${PANEL_DIR}/data/ipv6.pl ];then
# Need to restart ipv6 to take effect
echo 'True' > ${PANEL_DIR}/data/ipv6.pl
mw_stop
mw_start
fi
6 months ago
address="MW-PANEL-URL: ${scheme}://[$v6]:$port$admin_path"
6 months ago
else
6 months ago
address="MW-PANEL-URL: ${scheme}://you-network-ip:$port$admin_path"
6 months ago
fi
else
6 months ago
address="MW-PANEL-URL: ${scheme}://$address:$port$admin_path"
6 months ago
fi
5 months ago
# bind domain check
5 months ago
panel_bind_domain=$(python3 ${PANEL_DIR}/panel_tools.py panel_bind_domain)
if [ "$panel_bind_domain" != "" ];then
5 months ago
address="MW-PANEL-URL: ${scheme}://$panel_bind_domain:$port$admin_path\n${address}"
5 months ago
fi
6 months ago
show_panel_ip="$port|"
echo -e "=================================================================="
echo -e "\033[32mMW-PANEL DEFAULT INFO!\033[0m"
echo -e "=================================================================="
echo -e "$address"
6 months ago
echo -e `python3 ${PANEL_DIR}/panel_tools.py username`
echo -e `python3 ${PANEL_DIR}/panel_tools.py password`
6 months ago
echo -e "\033[33mWarning:\033[0m"
echo -e "\033[33mIf you cannot access the panel. \033[0m"
echo -e "\033[33mrelease the following port (${show_panel_ip}80|443|22) in the security group.\033[0m"
echo -e "=================================================================="
}
7 years ago
case "$1" in
'start') mw_start;;
'stop') mw_stop;;
'reload') mw_reload;;
7 years ago
'restart')
mw_stop
mw_start;;
3 years ago
'restart_panel')
mw_stop_panel
mw_start_panel;;
'restart_task')
mw_stop_task
mw_start_task;;
7 years ago
'status') mw_status;;
'logs') error_logs;;
2 years ago
'close') mw_close;;
'open') mw_open;;
3 years ago
'update') mw_update;;
7 months ago
'dev') mw_update_dev;;
3 years ago
'update_dev') mw_update_dev;;
'install_app') mw_install_app;;
3 years ago
'close_admin_path') mw_close_admin_path;;
'unbind_domain') mw_unbind_domain;;
12 months ago
'unbind_ssl') mw_unbind_domain;;
3 years ago
'debug') mw_debug;;
2 years ago
'mirror') mw_mirror;;
2 years ago
'db') mw_connect_mysql;;
7 months ago
'pgdb') mw_connect_pgdb;;
12 months ago
'redis') mw_redis;;
9 months ago
'mongodb') mw_mongodb;;
10 months ago
'venv') mw_update_venv;;
2 years ago
'clean_lib') mw_clean_lib;;
6 months ago
'default') mw_default;;
3 years ago
*)
6 months ago
cd ${PANEL_DIR} && python3 ${PANEL_DIR}/panel_tools.py cli $1
3 years ago
;;
3 years ago
esac