Skip to content

Commit

Permalink
feat: xiaoya tvbox update delete old volume
Browse files Browse the repository at this point in the history
  • Loading branch information
DDSRem committed Sep 30, 2024
1 parent 656267b commit 3fa12a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions all_in_one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3870,9 +3870,11 @@ function update_xiaoya_alist_tvbox() {
echo -en "即将开始更新小雅Alist-TVBox${Blue} $i ${Font}\r"
sleep 1
done
VOLUMES="$(docker inspect -f '{{range .Mounts}}{{if eq .Type "volume"}}{{println .}}{{end}}{{end}}' "$(cat ${DDSREM_CONFIG_DIR}/container_name/xiaoya_tvbox_name.txt)" | cut -d' ' -f2 | awk 'NF' | tr '\n' ' ')"
# shellcheck disable=SC2034
container_update_extra_command="sedsh '/\/opt\/atv\/data/d; \/opt\/alist\/data/d' "/tmp/container_update_$(cat ${DDSREM_CONFIG_DIR}/container_name/xiaoya_tvbox_name.txt)""
container_update "$(cat ${DDSREM_CONFIG_DIR}/container_name/xiaoya_tvbox_name.txt)"
docker volume rm ${VOLUMES}

}

Expand Down

0 comments on commit 3fa12a0

Please sign in to comment.