Skip to content

Commit

Permalink
feat: xiaoyakeeper installation status
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Jan 26, 2024
1 parent 7ce98ca commit 5a73944
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
#
# ——————————————————————————————————————————————————————————————————————————————————
#
DATE_VERSION="v1.0.0-2024_01_26_20_19"
DATE_VERSION="v1.0.0-2024_01_26_20_24"
#
# ——————————————————————————————————————————————————————————————————————————————————

Expand Down Expand Up @@ -82,6 +82,16 @@ function TODO(){
WARN "此功能未完成,请耐心等待开发者开发"
}

function judgment_container(){

if docker container inspect ${1} >/dev/null 2>&1; then
echo -e "${Green}已安装${Font}"
else
echo -e "${Red}未安装${Font}"
fi

}

function get_config_dir(){

if [ -f ${DDSREM_CONFIG_DIR}/xiaoya_alist_config_dir.txt ]; then
Expand Down Expand Up @@ -1541,21 +1551,11 @@ function main_advanced_configuration(){

}

function judgment_container(){

if docker container inspect ${1} >/dev/null 2>&1; then
echo -e "${Green}已安装${Font}"
else
echo -e "${Red}未安装${Font}"
fi

}

function main_return(){
curl -sL https://ddsrem.com/xiaoya/xiaoya_alist | sed "s/DATE_VERSION/${DATE_VERSION}/g"
echo -e "1、安装/更新/卸载 小雅Alist 当前状态:$(judgment_container ${xiaoya_alist_name})"
echo -e "2、安装/卸载 小雅Emby全家桶 当前状态:$(judgment_container ${xiaoya_emby_name})"
echo -e "3、安装/更新/卸载 小雅助手(xiaoyahelper)"
echo -e "3、安装/更新/卸载 小雅助手(xiaoyahelper) 当前状态:$(judgment_container xiaoyakeeper)"
echo -e "4、安装/更新/卸载 小雅Alist-TVBox 当前状态:$(judgment_container ${xiaoya_tvbox_name})"
echo -e "5、安装/更新/卸载 Onelist 当前状态:$(judgment_container ${xiaoya_onelist_name})"
echo -e "6、安装/更新/卸载 Portainer 当前状态:$(judgment_container ${portainer_name})"
Expand Down

0 comments on commit 5a73944

Please sign in to comment.