Skip to content

Commit

Permalink
Owncloud and Phpmyadmin: adjust module options to match changes
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpecovnik committed Dec 24, 2024
1 parent 09318e4 commit 97e4c34
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
module_options+=(
["module_owncloud,author"]="@armbian"
["module_owncloud,maintainer"]="@igorpecovnik"
["module_owncloud,feature"]="module_owncloud"
["module_owncloud,desc"]="Install owncloud container"
["module_owncloud,example"]="install remove purge status help"
["module_owncloud,port"]="7787"
["module_owncloud,desc"]="Install owncloud container"
["module_owncloud,status"]="Active"
["module_owncloud,arch"]="x86-64,arm64"
["module_owncloud,doc_link"]="https://doc.owncloud.com/"
["module_owncloud,group"]="Database"
["module_owncloud,port"]="7787"
["module_owncloud,arch"]="x86-64 arm64"
)
#
# Module owncloud
Expand All @@ -30,6 +33,7 @@ function module_owncloud () {
[[ -d "$OWNCLOUD_BASE" ]] || mkdir -p "$OWNCLOUD_BASE" || { echo "Couldn't create storage directory: $OWNCLOUD_BASE"; exit 1; }
docker run -d \
--name=owncloud \
--net=lsio \
-e PUID=1000 \
-e PGID=1000 \
-e TZ="$(cat /etc/timezone)" \
Expand All @@ -56,6 +60,7 @@ function module_owncloud () {
[[ "${image}" ]] && docker image rm "$image" >/dev/null
;;
"${commands[2]}")
${module_options["module_owncloud,feature"]} ${commands[1]}
[[ -n "${OWNCLOUD_BASE}" && "${OWNCLOUD_BASE}" != "/" ]] && rm -rf "${OWNCLOUD_BASE}"
;;
"${commands[3]}")
Expand All @@ -76,7 +81,7 @@ function module_owncloud () {
echo
;;
*)
${module_options["module_owncloud,feature"]} ${commands[4]}
${module_options["module_owncloud,feature"]} ${commands[4]}
;;
esac
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
module_options+=(
["module_phpmyadmin,author"]=""
["module_phpmyadmin,author"]="@igorpecovnik"
["module_phpmyadmin,maintainer"]="@igorpecovnik"
["module_phpmyadmin,testers"]="@igorpecovnik"
["module_phpmyadmin,feature"]="module_phpmyadmin"
["module_phpmyadmin,desc"]="Install phpmyadmin container"
["module_phpmyadmin,example"]="install remove purge status help"
["module_phpmyadmin,port"]="8071"
["module_phpmyadmin,desc"]="Install phpmyadmin container"
["module_phpmyadmin,status"]="Active"
["module_phpmyadmin,arch"]=""
["module_phpmyadmin,doc_link"]="https://www.phpmyadmin.net/docs/"
["module_phpmyadmin,group"]="Database"
["module_phpmyadmin,port"]="8071"
["module_phpmyadmin,arch"]="x86-64 arm64"
)
#
# Module phpmyadmin-PDF
Expand All @@ -32,6 +33,7 @@ function module_phpmyadmin () {
[[ -d "$PHPMYADMIN_BASE" ]] || mkdir -p "$PHPMYADMIN_BASE" || { echo "Couldn't create storage directory: $PHPMYADMIN_BASE"; exit 1; }
docker run -d \
--name=phpmyadmin \
--net=lsio \
-e PUID=1000 \
-e PGID=1000 \
-e TZ="$(cat /etc/timezone)" \
Expand All @@ -57,6 +59,7 @@ function module_phpmyadmin () {
[[ "${image}" ]] && docker image rm "$image" >/dev/null
;;
"${commands[2]}")
${module_options["module_phpmyadmin,feature"]} ${commands[1]}
[[ -n "${PHPMYADMIN_BASE}" && "${PHPMYADMIN_BASE}" != "/" ]] && rm -rf "${PHPMYADMIN_BASE}"
;;
"${commands[3]}")
Expand All @@ -78,7 +81,7 @@ function module_phpmyadmin () {
echo
;;
*)
${module_options["module_phpmyadmin,feature"]} ${commands[4]}
${module_options["module_phpmyadmin,feature"]} ${commands[4]}
;;
esac
}

0 comments on commit 97e4c34

Please sign in to comment.