Compare commits
55 Commits
codex/fix-
...
f7590325a5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7590325a5 | ||
|
|
4bdf6f6b96 | ||
|
|
b8811847a4 | ||
|
|
01fbdec656 | ||
|
|
bdb0013393 | ||
|
|
baaf441b01 | ||
|
|
b4cf41bdaf | ||
|
|
775caddd7e | ||
|
|
dd931d7696 | ||
|
|
3357799fa3 | ||
|
|
79dfd665d2 | ||
|
|
4520703d39 | ||
|
|
fe34bc4998 | ||
|
|
dcdd67993b | ||
|
|
03d5e4c1e0 | ||
|
|
40439cf497 | ||
|
|
6cb204ca93 | ||
|
|
0f4cb6f0f0 | ||
|
|
3183ed841a | ||
|
|
ec37da3c72 | ||
|
|
15d2d44c9e | ||
|
|
31bd179077 | ||
|
|
d2549ed17d | ||
|
|
a916043cb1 | ||
|
|
4434854232 | ||
|
|
81ff59d7e8 | ||
|
|
8eb63b70fd | ||
|
|
9a86339d5f | ||
|
|
6054bd1e46 | ||
|
|
0c69c5deb2 | ||
|
|
03eedf5a9d | ||
|
|
03cf97ebf1 | ||
|
|
94e1237da9 | ||
|
|
7de70a2066 | ||
|
|
72549986f1 | ||
|
|
9321dc9345 | ||
|
|
af41c2bce6 | ||
|
|
b35dd4f992 | ||
|
|
681590e9b1 | ||
|
|
dd66f4b497 | ||
|
|
72a99d056a | ||
|
|
fb1e3374a7 | ||
|
|
64f0656e84 | ||
|
|
2500a30186 | ||
|
|
4a75b76a19 | ||
|
|
573c9721c6 | ||
|
|
1669f63f21 | ||
|
|
7461665439 | ||
|
|
fdfe3070d2 | ||
|
|
f0f1251285 | ||
|
|
6de904a01f | ||
|
|
ae11760a96 | ||
|
|
307b26798e | ||
|
|
64cd59699f | ||
|
|
0c8f5239bf |
BIN
.github/stargazer_map.png
vendored
|
Before Width: | Height: | Size: 330 KiB After Width: | Height: | Size: 62 KiB |
BIN
.github/stats.png
vendored
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
.github/stats_addons.png
vendored
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -237,9 +237,10 @@ for files in "/etc/services.d" "/etc/cont-init.d"; do
|
||||
# Bashio
|
||||
if grep -q -rnw "$files/" -e 'bashio' && [ ! -f "/usr/bin/bashio" ]; then
|
||||
[ "$VERBOSE" = true ] && echo "install bashio"
|
||||
BASHIO_VERSION="0.14.3"
|
||||
BASHIO_VERSION="latest"
|
||||
mkdir -p /tmp/bashio
|
||||
curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio
|
||||
BASHIO_TAG="$(curl -f -L -s -S "https://api.github.com/repos/hassio-addons/bashio/releases/${BASHIO_VERSION}" | awk -F '\"' '/tag_name/{print $4; exit}')"
|
||||
curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/${BASHIO_TAG}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio
|
||||
mv /tmp/bashio/lib /usr/lib/bashio
|
||||
ln -s /usr/lib/bashio/bashio /usr/bin/bashio
|
||||
rm -rf /tmp/bashio
|
||||
|
||||
14
README.md
@@ -817,6 +817,13 @@ If you want to do add the repository manually, please follow the procedure highl
|
||||
![aarch64][aarch64-badge]
|
||||
![amd64][amd64-badge]
|
||||
|
||||
✓ [Vaultwarden](bitwarden/) : Open source password management solution
|
||||
|
||||
  
|
||||

|
||||
![aarch64][aarch64-badge]
|
||||
![amd64][amd64-badge]
|
||||
|
||||
✓  [Webtop KDE](webtop_kde/) : Full linux desktop environment accessible via any modern web browser
|
||||
|
||||
  
|
||||
@@ -908,13 +915,6 @@ If you want to do add the repository manually, please follow the procedure highl
|
||||
![aarch64][aarch64-badge]
|
||||
![amd64][amd64-badge]
|
||||
|
||||
✓ [zzz_archived - Vaultwarden](zzz_archived_bitwarden/) : Deprecated - please use community version
|
||||
|
||||
  
|
||||

|
||||
![aarch64][aarch64-badge]
|
||||
![amd64][amd64-badge]
|
||||
|
||||
✓ [zzz_archived : Code-server (VScode)](zzz_archived_code-server/) : Deprecated : Code-server is VS Code running on a remote server, accessible through the browser
|
||||
|
||||
  
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
baikal/stats.png
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
bazarr/stats.png
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
codex/stats.png
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.7 KiB |
BIN
emby/stats.png
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
ente/stats.png
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
gitea/stats.png
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
grav/stats.png
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
BIN
inadyn/stats.png
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
joal/stats.png
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
joplin/stats.png
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
kometa/stats.png
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.3 KiB |
BIN
lidarr/stats.png
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -1,3 +1,5 @@
|
||||
## v3.8.0-2 (29-12-2025)
|
||||
- Minor bugs fixed
|
||||
|
||||
## v3.8.0 (20-12-2025)
|
||||
- Update to latest version from mealie-recipes/mealie (changelog : https://github.com/mealie-recipes/mealie/releases)
|
||||
|
||||
@@ -114,4 +114,4 @@ schema:
|
||||
slug: mealie
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "v3.8.0"
|
||||
version: v3.8.0-2
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
sub_filter '`/api' '`%%ingress_entry%%/api';
|
||||
sub_filter "'/api" "'%%ingress_entry%%/api";
|
||||
sub_filter %%base_subpath%% %%ingress_entry%%/;
|
||||
sub_filter recipes/releases/tag recipes/mealie/releases/tag;
|
||||
sub_filter 'href="/"' 'href="%%ingress_entry%%/"';
|
||||
sub_filter '"\/"' '"%%ingress_entry%%\/"';
|
||||
}
|
||||
|
||||
BIN
mealie/stats.png
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
monica/stats.png
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
BIN
mylar3/stats.png
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
nzbget/stats.png
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.5 KiB |
BIN
omada/stats.png
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,3 +1,6 @@
|
||||
## 4.53.0-1 (01-01-2026)
|
||||
- Enable DOTNET_USE_POLLING_FILE_WATCHER to avoid inotify startup failures.
|
||||
|
||||
## 4.53.0 (04-12-2025)
|
||||
- Development branch
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@ FROM ${BUILD_FROM}
|
||||
##################
|
||||
|
||||
# Set S6 wait time
|
||||
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
ENV DOTNET_USE_POLLING_FILE_WATCHER=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
|
||||
@@ -86,5 +86,5 @@ schema:
|
||||
slug: ombi
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/ombi
|
||||
version: 4.53.0
|
||||
version: 4.53.0-1
|
||||
webui: "[PROTO:ssl]://[HOST]:[PORT:3579]"
|
||||
|
||||
BIN
ombi/stats.png
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
piwigo/stats.png
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
plex/stats.png
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,3 +1,38 @@
|
||||
## 2025.12-6 (31-12-2025)
|
||||
- Minor bugs fixed
|
||||
## 2025.12-5 (31-12-2025)
|
||||
- Minor bugs fixed
|
||||
## 2025.12-4 (31-12-2025)
|
||||
- Minor bugs fixed
|
||||
## 2025.12-3 (31-12-2025)
|
||||
- Minor bugs fixed
|
||||
## 2025.12-2 (31-12-2025)
|
||||
- Minor bugs fixed
|
||||
## alpine-sts-3 (30-12-2025)
|
||||
- Minor bugs fixed
|
||||
## alpine-sts-2 (30-12-2025)
|
||||
- Minor bugs fixed
|
||||
## alpine-sts (30-12-2025)
|
||||
|
||||
- Fix: Restore official Portainer Agent image source - Fix circular dependency (Fixes #2318)
|
||||
- Revert COPY --from to use official ghcr.io/portainerci/agent:latest instead of self-reference
|
||||
- Restored multi-architecture support via ARG BUILD_FROM/ARG BUILD_ARCH (fixes aarch64 builds)
|
||||
- Removed stderr suppression to preserve error messages for user diagnostics
|
||||
- This fixes build failures that prevented users from updating
|
||||
- Updated config.yaml version tag to match buildable image tag
|
||||
|
||||
## alpine-sts-bashio-fix (29-12-2025)
|
||||
|
||||
- Fix: PROTECTION MODE IS ENABLED error when protection mode is OFF (Fixes #2307)
|
||||
- Update bashio from v0.17.5 → main branch for improved API error handling
|
||||
- Add robust protection mode check with Docker socket fallback
|
||||
- Tested and verified working on Home Assistant OS
|
||||
|
||||
|
||||
- Fix: PROTECTION MODE IS ENABLED error when protection mode is OFF (Fixes #2307)
|
||||
- Update bashio from v0.17.5 → main branch for improved API error handling
|
||||
- Add robust protection mode check with Docker socket fallback
|
||||
- Tested and verified working on Home Assistant OS
|
||||
|
||||
## alpine-sts (24-12-2025)
|
||||
- Update to latest version from portainer/agent
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
# ALEXBELGIUM'S DOCKERFILE #
|
||||
#============================#
|
||||
# _.------.
|
||||
# _.-` ('>.-`"alpine-sts""-.
|
||||
# _.-` ('>.-`"""-.
|
||||
# '.--'` _'` _ .--.)
|
||||
# -' '-.-';` `
|
||||
# ' - _.' ``'--.
|
||||
# '---` .-'"alpine-sts"`
|
||||
# '---` .-'""`
|
||||
# /`
|
||||
#=== Home Assistant Addon ===#
|
||||
|
||||
@@ -19,7 +19,7 @@ ARG BUILD_FROM
|
||||
|
||||
# Get agent
|
||||
FROM portainer/agent:alpine as original_agent
|
||||
ENV PORTAINER_AGENT_ARGS="alpine-sts"
|
||||
ENV PORTAINER_AGENT_ARGS=""
|
||||
|
||||
# Build using base
|
||||
FROM $BUILD_FROM
|
||||
@@ -79,14 +79,12 @@ ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templat
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint_modif.sh" "/ha_entrypoint_modif.sh"
|
||||
RUN chmod 777 /ha_entrypoint.sh /ha_entrypoint_modif.sh && /ha_entrypoint_modif.sh && rm /ha_entrypoint_modif.sh
|
||||
|
||||
# Standalone bashio command
|
||||
ADD "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/bashio-standalone.sh" "/.bashio-standalone.sh"
|
||||
RUN chmod 777 /.bashio-standalone.sh
|
||||
|
||||
RUN chmod a+x /usr/sbin/healthcheck && \
|
||||
chmod a+x /usr/sbin/wait-for-signal
|
||||
WORKDIR "/app"
|
||||
ENTRYPOINT [ "/init" ]
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/env" ]
|
||||
CMD [ "/ha_entrypoint.sh" ]
|
||||
|
||||
############
|
||||
# 5 Labels #
|
||||
@@ -139,8 +137,8 @@ RUN \
|
||||
mv /etc/nginx/nginx.conf.new /etc/nginx/nginx.conf; \
|
||||
fi
|
||||
|
||||
ENV HEALTH_PORT="alpine-sts" \
|
||||
HEALTH_URL="alpine-sts"
|
||||
ENV HEALTH_PORT="" \
|
||||
HEALTH_URL=""
|
||||
HEALTHCHECK \
|
||||
--interval=5s \
|
||||
--retries=5 \
|
||||
|
||||
@@ -41,4 +41,4 @@ schema:
|
||||
slug: portainer_agent
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: "alpine-sts"
|
||||
version: 2025.12-6
|
||||
|
||||
@@ -1,19 +1,18 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
# ==============================================================================
|
||||
# Home Assistant Community Add-on: portainer_agent
|
||||
# Runs some initializations for portainer_agent
|
||||
# ==============================================================================
|
||||
set -euo pipefail
|
||||
|
||||
bashio::require.unprotected
|
||||
|
||||
bashio::log.info "Starting app"
|
||||
|
||||
# Launch app
|
||||
cd /app || true
|
||||
cd /app || exit 1
|
||||
|
||||
container_name="${HOSTNAME//-/_}"
|
||||
export HOSTNAME="${container_name}"
|
||||
|
||||
args=()
|
||||
if bashio::config.has_value 'PORTAINER_AGENT_ARGS'; then
|
||||
./agent "$PORTAINER_AGENT_ARGS" 2> /dev/null
|
||||
else
|
||||
./agent
|
||||
read -r -a args <<<"$(bashio::config 'PORTAINER_AGENT_ARGS')"
|
||||
fi
|
||||
|
||||
./agent "${args[@]}"
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.6 KiB |
BIN
radarr/stats.png
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -1,4 +1,7 @@
|
||||
|
||||
## 12.0.17 (12-03-2026)
|
||||
- Ensure `SERVICE_URL` and `FILE_SERVER_ROOT` are written to the active Seafile config path.
|
||||
|
||||
## 12.0.14 (28-12-2025)
|
||||
- Update to latest version from franchetti/seafile-arm
|
||||
|
||||
|
||||
@@ -128,5 +128,5 @@ services:
|
||||
slug: seafile
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons/tree/master/seafile
|
||||
version: "12.0.14"
|
||||
version: "12.0.17"
|
||||
webui: http://[HOST]:[PORT:8000]
|
||||
|
||||
@@ -98,17 +98,30 @@ normalize_url() {
|
||||
SERVICE_URL_VALUE=$(normalize_url "${SERVICE_URL_CONFIG:-${DEFAULT_HOST}:8000}" "http")
|
||||
FILE_SERVER_ROOT_VALUE=$(normalize_url "${FILE_SERVER_ROOT_CONFIG:-${DEFAULT_HOST}:${DEFAULT_FILE_PORT}}" "http")
|
||||
|
||||
SEAHUB_SETTINGS_FILE="${DATA_LOCATION}/conf/seahub_settings.py"
|
||||
mkdir -p "$(dirname "${SEAHUB_SETTINGS_FILE}")"
|
||||
touch "${SEAHUB_SETTINGS_FILE}"
|
||||
SEAHUB_CONF_DIRS=()
|
||||
if [[ -d "${DATA_LOCATION}/conf" || ! -d "${DATA_LOCATION}/seafile/conf" ]]; then
|
||||
SEAHUB_CONF_DIRS+=("${DATA_LOCATION}/conf")
|
||||
fi
|
||||
if [[ -d "${DATA_LOCATION}/seafile/conf" ]]; then
|
||||
SEAHUB_CONF_DIRS+=("${DATA_LOCATION}/seafile/conf")
|
||||
fi
|
||||
if [[ "${#SEAHUB_CONF_DIRS[@]}" -eq 0 ]]; then
|
||||
SEAHUB_CONF_DIRS+=("${DATA_LOCATION}/conf")
|
||||
fi
|
||||
|
||||
sed -i '/^SERVICE_URL *=/d' "${SEAHUB_SETTINGS_FILE}"
|
||||
sed -i '/^FILE_SERVER_ROOT *=/d' "${SEAHUB_SETTINGS_FILE}"
|
||||
for conf_dir in "${SEAHUB_CONF_DIRS[@]}"; do
|
||||
SEAHUB_SETTINGS_FILE="${conf_dir}/seahub_settings.py"
|
||||
mkdir -p "${conf_dir}"
|
||||
touch "${SEAHUB_SETTINGS_FILE}"
|
||||
|
||||
{
|
||||
echo "SERVICE_URL = \"${SERVICE_URL_VALUE}\""
|
||||
echo "FILE_SERVER_ROOT = \"${FILE_SERVER_ROOT_VALUE}\""
|
||||
} >> "${SEAHUB_SETTINGS_FILE}"
|
||||
sed -i '/^SERVICE_URL *=/d' "${SEAHUB_SETTINGS_FILE}"
|
||||
sed -i '/^FILE_SERVER_ROOT *=/d' "${SEAHUB_SETTINGS_FILE}"
|
||||
|
||||
{
|
||||
echo "SERVICE_URL = \"${SERVICE_URL_VALUE}\""
|
||||
echo "FILE_SERVER_ROOT = \"${FILE_SERVER_ROOT_VALUE}\""
|
||||
} >> "${SEAHUB_SETTINGS_FILE}"
|
||||
done
|
||||
|
||||
bashio::log.info "SERVICE_URL set to ${SERVICE_URL_VALUE}"
|
||||
bashio::log.info "FILE_SERVER_ROOT set to ${FILE_SERVER_ROOT_VALUE}"
|
||||
|
||||