Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust software module options to match recent changes #332

Merged
merged 22 commits into from
Dec 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
01bbe3b
Bazarr: adjust module options to match changes
igorpecovnik Dec 22, 2024
28f5838
Deluge: adjust module options to match changes
igorpecovnik Dec 23, 2024
a0d0db9
Docker: adjust module options to match changes
igorpecovnik Dec 23, 2024
71382ca
Emby server: adjust module options to match changes
igorpecovnik Dec 23, 2024
8eff779
HAOS: adjust module options to match changes
igorpecovnik Dec 23, 2024
7f252a1
OpenHab: adjust module options to match changes
igorpecovnik Dec 23, 2024
d575c7a
qbittorrent: adjust module options to match changes
igorpecovnik Dec 23, 2024
70c97a7
Transmission: adjust module options to match changes
igorpecovnik Dec 23, 2024
a974aa9
sabnzbd: adjust module options to match changes
igorpecovnik Dec 23, 2024
1ae622e
Medusa: adjust module options to match changes
igorpecovnik Dec 23, 2024
499a3df
Sonarr: adjust module options to match changes
igorpecovnik Dec 23, 2024
5d4321b
Radarr: adjust module options to match changes
igorpecovnik Dec 23, 2024
7ed198d
Lidarr and Readarr: adjust module options to match changes
igorpecovnik Dec 23, 2024
6421f5e
SWAG: adjust module options to match changes
igorpecovnik Dec 23, 2024
09cd02d
Jellyserr and Mariadb: adjust module options to match changes
igorpecovnik Dec 24, 2024
09318e4
Nextcloud and Netdata: adjust module options to match changes
igorpecovnik Dec 24, 2024
97e4c34
Owncloud and Phpmyadmin: adjust module options to match changes
igorpecovnik Dec 24, 2024
88a3865
Pi-hole and Prowlarr: adjust module options to match changes
igorpecovnik Dec 24, 2024
b3d527b
Sirling and Uptime kuma: adjust module options to match changes
igorpecovnik Dec 24, 2024
11f3c8c
Syncthing and watchtower: adjust module options to match changes
igorpecovnik Dec 24, 2024
5bb9df1
Portainer and Webmin: adjust module options to match changes
igorpecovnik Dec 24, 2024
59fcb02
Several minor fixes
igorpecovnik Dec 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions tools/json/config.software.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,9 @@
"condition": "module_radarr status"
},
{
"id": "DOW019",
"description": "Install Bazarr",
"id": "DOW100",
"description": "Bazarr Install",
"about": "This operation will install Bazarr container",
"command": [
"module_bazarr install"
],
Expand All @@ -559,15 +560,27 @@
"condition": "! module_bazarr status"
},
{
"id": "DOW020",
"description": "Remove Bazarr",
"id": "DOW101",
"description": "Bazarr Remove",
"about": "This operation will remove Bazarr container",
"command": [
"module_bazarr remove"
],
"status": "Stable",
"author": "@armbian",
"condition": "module_bazarr status"
},
{
"id": "DOW102",
"description": "Bazarr Purge data folder",
"about": "This operation will remove Bazarr data folder",
"command": [
"module_bazarr purge"
],
"status": "Stable",
"author": "@armbian",
"condition": "! module_bazarr status && [[ -d \"${SOFTWARE_FOLDER}/bazarr\" ]]"
},
{
"id": "DOW021",
"description": "Install Lidarr",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
module_options+=(
["module_bazarr,author"]="@igorpecovnik"
["module_bazarr,author"]=""
["module_bazarr,maintainer"]="@igorpecovnik"
["module_bazarr,feature"]="module_bazarr"
["module_bazarr,example"]="install remove purge status help"
["module_bazarr,desc"]="Install bazarr container"
["module_bazarr,example"]="install remove status help"
["module_bazarr,port"]="6767"
["module_bazarr,status"]="Active"
["module_bazarr,doc_link"]="https://wiki.bazarr.media/"
["module_bazarr,group"]="Downloaders"
["module_bazarr,port"]="6767"
["module_bazarr,arch"]="x86-64,arm64"
Tearran marked this conversation as resolved.
Show resolved Hide resolved
)
#
Expand All @@ -30,6 +33,7 @@ function module_bazarr () {
[[ -d "$BAZARR_BASE" ]] || mkdir -p "$BAZARR_BASE" || { echo "Couldn't create storage directory: $BAZARR_BASE"; exit 1; }
docker run -d \
--name=bazarr \
--net=lsio \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
Expand All @@ -54,26 +58,29 @@ function module_bazarr () {
"${commands[1]}")
[[ "${container}" ]] && docker container rm -f "$container" >/dev/null
[[ "${image}" ]] && docker image rm "$image" >/dev/null
[[ -n "${BAZARR_BASE}" && "${BAZARR_BASE}" != "/" ]] && rm -rf "${BAZARR_BASE}"
;;
"${commands[2]}")
[[ -n "${BAZARR_BASE}" && "${BAZARR_BASE}" != "/" ]] && rm -rf "${BAZARR_BASE}"
;;
"${commands[3]}")
if [[ "${container}" && "${image}" ]]; then
return 0
else
return 1
fi
;;
"${commands[3]}")
"${commands[4]}")
echo -e "\nUsage: ${module_options["module_bazarr,feature"]} <command>"
echo -e "Commands: ${module_options["module_bazarr,example"]}"
echo "Available commands:"
echo -e "\tinstall\t- Install $title."
echo -e "\tstatus\t- Installation status $title."
echo -e "\tremove\t- Remove $title."
echo -e "\tremove\t- Purge $title."
echo
;;
*)
${module_options["module_bazarr,feature"]} ${commands[3]}
${module_options["module_bazarr,feature"]} ${commands[4]}
;;
esac
}
Loading