Skip to content

Commit

Permalink
feat: postgresql,docker,traefik,authelia,yq
Browse files Browse the repository at this point in the history
  • Loading branch information
woniuzfb committed May 5, 2024
1 parent 13e9051 commit 18d2724
Show file tree
Hide file tree
Showing 42 changed files with 1,630 additions and 87 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ wget https://woniuzfb.github.io/iptv/iptv.sh && bash iptv.sh

- traefik
- authelia
- postgresql
- yq

</details>

Expand Down
2 changes: 1 addition & 1 deletion build
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ReplaceInclude()
echo "${2:-}if [ \"\$self\" == \"tv\" ] || [ \"\$self\" == \"iptv\" ]"
echo "${2:-}then"
ReplaceInclude src/tv " ${2:-}"
bins=(v2 x nx or pve arm ibm cf cx ali lhh rc cw)
bins=(v2 x nx or pve arm ibm cf cx ali lhh rc cw dr)
for bin in "${bins[@]}"
do
echo "${2:-}elif [ \"\$self\" == \"$bin\" ]"
Expand Down
8 changes: 1 addition & 7 deletions core
Original file line number Diff line number Diff line change
Expand Up @@ -272,17 +272,11 @@ WaitTerm()
}

Include utils/system "$@"

Include utils/inquirer "$@"

Include utils/spinner "$@"

Include utils/progress "$@"

Include utils/shfile "$@"

Include utils/jq "$@"

Include utils/git "$@"
Include utils/curl "$@"

Include utils/log
15 changes: 7 additions & 8 deletions docs/iptv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,7 @@ DepsInstall()
# based on https://raw.githubusercontent.com/tanhauhau/Inquirer.sh/master/dist/inquirer.sh
inquirer()
{
if [[ ! -x $(command -v tput) ]]
then
DepInstall tput
fi
DepInstall tput

inquirer:print() {
tput el
Expand Down Expand Up @@ -2214,6 +2211,7 @@ inquirer()
if [ "$list_count" -eq 1 ]
then
inquirer:print "${green}?${normal} ${bold}${bg_black}${white}${prompt} ${bg_black}${cyan}${list_options[current_index]}${normal}\n"
page_list=("${list_options[@]}")
return
fi

Expand Down Expand Up @@ -2460,11 +2458,12 @@ inquirer()

trap inquirer:control_c EXIT

stty -echo
tput cnorm
#stty -echo
#tput cnorm

inquirer:on_keypress inquirer:on_default inquirer:on_default inquirer:on_text_input_ascii inquirer:on_text_input_enter inquirer:on_text_input_left inquirer:on_text_input_right inquirer:on_text_input_ascii inquirer:on_text_input_backspace inquirer:on_text_input_not_ascii
read -r ${var_name?} <<< "$text_input"
read -e text_input
#inquirer:on_keypress inquirer:on_default inquirer:on_default inquirer:on_text_input_ascii inquirer:on_text_input_enter inquirer:on_text_input_left inquirer:on_text_input_right inquirer:on_text_input_ascii inquirer:on_text_input_backspace inquirer:on_text_input_not_ascii
read -r ${var_name?} <<< "${text_input:-$text_default}"

inquirer:cleanup

Expand Down
10 changes: 10 additions & 0 deletions env
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ ARM_FILE=/usr/local/bin/arm
PVE_FILE=/usr/local/bin/pve
LOG_FILE="$HOME"/iptv.log
JQ_FILE=/usr/local/bin/jq
YQ_FILE=/usr/local/bin/yq
FFMPEG_FILE=/usr/local/bin/ffmpeg
FFPROBE_FILE=/usr/local/bin/ffprobe
CURL_IMPERSONATE_FILE=/usr/local/bin/curl-impersonate
Expand Down Expand Up @@ -127,3 +128,12 @@ CALIBRE_ROOT="$SERVICES_ROOT"/calibre
# Kcc
KCC_ROOT="$CALIBRE_ROOT"/kcc
KCC_FILE="$KCC_ROOT"/kcc-c2e.py

# docker
DOCKER_FILE=/usr/local/bin/dr
DOCKER_ROOT="$SERVICES_ROOT"/docker
DOCKER_CONFIG="$SERVICES_ROOT"/docker/docker-compose.yml

# aios
AIOS_LINK=https://github.com/woniuzfb/iptv
AIOS_ROOT="$SERVICES_ROOT"/aios
15 changes: 7 additions & 8 deletions iptv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -676,10 +676,7 @@ DepsInstall()
# based on https://raw.githubusercontent.com/tanhauhau/Inquirer.sh/master/dist/inquirer.sh
inquirer()
{
if [[ ! -x $(command -v tput) ]]
then
DepInstall tput
fi
DepInstall tput

inquirer:print() {
tput el
Expand Down Expand Up @@ -2214,6 +2211,7 @@ inquirer()
if [ "$list_count" -eq 1 ]
then
inquirer:print "${green}?${normal} ${bold}${bg_black}${white}${prompt} ${bg_black}${cyan}${list_options[current_index]}${normal}\n"
page_list=("${list_options[@]}")
return
fi

Expand Down Expand Up @@ -2460,11 +2458,12 @@ inquirer()

trap inquirer:control_c EXIT

stty -echo
tput cnorm
#stty -echo
#tput cnorm

inquirer:on_keypress inquirer:on_default inquirer:on_default inquirer:on_text_input_ascii inquirer:on_text_input_enter inquirer:on_text_input_left inquirer:on_text_input_right inquirer:on_text_input_ascii inquirer:on_text_input_backspace inquirer:on_text_input_not_ascii
read -r ${var_name?} <<< "$text_input"
read -e text_input
#inquirer:on_keypress inquirer:on_default inquirer:on_default inquirer:on_text_input_ascii inquirer:on_text_input_enter inquirer:on_text_input_left inquirer:on_text_input_right inquirer:on_text_input_ascii inquirer:on_text_input_backspace inquirer:on_text_input_not_ascii
read -r ${var_name?} <<< "${text_input:-$text_default}"

inquirer:cleanup

Expand Down
2 changes: 1 addition & 1 deletion make
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# LianHuanHua / Rclone / Alist / Calibre / FFmpeg / Nginx / Openresty / V2ray / Xray / Cloudflare / IBM Cloud Foundry / Armbian / Proxmox VE / ...
# Docker / LianHuanHua / Rclone / Alist / Calibre / FFmpeg / Nginx / Openresty / V2ray / Xray / Cloudflare / IBM Cloud Foundry / Armbian / Proxmox VE / ...
# Copyright (C) 2019-2024
# Released under GPL Version 3 License

Expand Down
10 changes: 6 additions & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1548,6 +1548,7 @@ inquirer()
if [ "$list_count" -eq 1 ]
then
inquirer:print "${green}?${normal} ${bold}${bg_black}${white}${prompt} ${bg_black}${cyan}${list_options[current_index]}${normal}\n"
page_list=("${list_options[@]}")
return
fi

Expand Down Expand Up @@ -1794,11 +1795,12 @@ inquirer()

trap inquirer:control_c EXIT

stty -echo
tput cnorm
#stty -echo
#tput cnorm

inquirer:on_keypress inquirer:on_default inquirer:on_default inquirer:on_text_input_ascii inquirer:on_text_input_enter inquirer:on_text_input_left inquirer:on_text_input_right inquirer:on_text_input_ascii inquirer:on_text_input_backspace inquirer:on_text_input_not_ascii
read -r ${var_name?} <<< "$text_input"
read -e text_input
#inquirer:on_keypress inquirer:on_default inquirer:on_default inquirer:on_text_input_ascii inquirer:on_text_input_enter inquirer:on_text_input_left inquirer:on_text_input_right inquirer:on_text_input_ascii inquirer:on_text_input_backspace inquirer:on_text_input_not_ascii
read -r ${var_name?} <<< "${text_input:-$text_default}"

inquirer:cleanup

Expand Down
Loading

0 comments on commit 18d2724

Please sign in to comment.