mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-08 00:25:55 +02:00
Compare commits
24 Commits
2ce9499b46
...
a6f49f298f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6f49f298f | ||
|
|
0b3f4b7b38 | ||
|
|
37bc46d5be | ||
|
|
124134ad1e | ||
|
|
3e026a99bc | ||
|
|
28056af8da | ||
|
|
d09f4f15b7 | ||
|
|
98f7e6a535 | ||
|
|
0d3d7ce37d | ||
|
|
50563cf1a8 | ||
|
|
4cca9d6a77 | ||
|
|
dd1a9ce21d | ||
|
|
ea54e5f706 | ||
|
|
7315336e2b | ||
|
|
ae01c1063a | ||
|
|
f510d6695b | ||
|
|
aafbc88a38 | ||
|
|
7529a307fd | ||
|
|
a1e6d3a896 | ||
|
|
673cbea714 | ||
|
|
542c0468c8 | ||
|
|
de50234e22 | ||
|
|
cd79546d0e | ||
|
|
2e61a55a52 |
@@ -1,5 +1,8 @@
|
||||
- Added support for configuring extra environment variables via the `env_vars` add-on option alongside config.yaml. See https://github.com/alexbelgium/hassio-addons/wiki/Add-Environment-variables-to-your-Addon-2 for details.
|
||||
|
||||
## 1.6.0-12 (02-10-2025)
|
||||
- Added configuration to enable the history recording storage extension with a configurable recording path
|
||||
|
||||
## 1.6.0-11 (16-09-2025)
|
||||
- Minor bugs fixed
|
||||
## 1.6.0-10 (16-09-2025)
|
||||
|
||||
@@ -45,13 +45,15 @@ The default username is `guacadmin` with password `guacadmin`. It is strongly re
|
||||
|
||||
| Option | Type | Default | Description |
|
||||
|--------|------|---------|-------------|
|
||||
| `EXTENSIONS` | str | `auth-totp` | Guacamole extensions to enable (e.g., `auth-totp`) |
|
||||
| `EXTENSIONS` | str | `auth-totp` | Guacamole extensions to enable (e.g., `auth-totp`, `history-recording-storage`) |
|
||||
| `recording_search_path` | str | `/config/recordings` | Directory added to `guacamole.properties` as the `recording-search-path` used by the history recording storage extension |
|
||||
| `TZ` | str | | Timezone (e.g., `Europe/London`) |
|
||||
|
||||
### Example Configuration
|
||||
|
||||
```yaml
|
||||
EXTENSIONS: "auth-totp"
|
||||
EXTENSIONS: "auth-totp,history-recording-storage"
|
||||
recording_search_path: "/config/recordings"
|
||||
TZ: "Europe/London"
|
||||
```
|
||||
|
||||
|
||||
@@ -85,6 +85,7 @@ name: Guacamole Client
|
||||
options:
|
||||
env_vars: []
|
||||
EXTENSIONS: auth-totp
|
||||
recording_search_path: /config/recordings
|
||||
panel_admin: false
|
||||
panel_icon: mdi:lan
|
||||
ports:
|
||||
@@ -96,9 +97,10 @@ schema:
|
||||
- name: match(^[A-Za-z0-9_]+$)
|
||||
value: str?
|
||||
EXTENSIONS: str?
|
||||
recording_search_path: str?
|
||||
TZ: str?
|
||||
slug: guacamole
|
||||
udev: true
|
||||
url: https://github.com/alexbelgium/hassio-addons
|
||||
version: 1.6.0-11
|
||||
version: 1.6.0-12
|
||||
video: true
|
||||
|
||||
24
guacamole/rootfs/etc/cont-init.d/60-recordings.sh
Executable file
24
guacamole/rootfs/etc/cont-init.d/60-recordings.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
readonly GUAC_PROPERTIES_FILE="/config/guacamole.properties"
|
||||
|
||||
recording_path="$(bashio::config 'recording_search_path')"
|
||||
if bashio::var.is_empty "${recording_path}"; then
|
||||
recording_path="/config/recordings"
|
||||
fi
|
||||
|
||||
bashio::log.info "Ensuring recording storage path exists: ${recording_path}"
|
||||
mkdir -p "${recording_path}"
|
||||
|
||||
if [ ! -f "${GUAC_PROPERTIES_FILE}" ]; then
|
||||
bashio::log.info "Creating guacamole.properties at ${GUAC_PROPERTIES_FILE}"
|
||||
touch "${GUAC_PROPERTIES_FILE}"
|
||||
fi
|
||||
|
||||
if grep -q "^recording-search-path:" "${GUAC_PROPERTIES_FILE}"; then
|
||||
sed -i "s|^recording-search-path:.*|recording-search-path: ${recording_path}|" "${GUAC_PROPERTIES_FILE}"
|
||||
else
|
||||
echo "recording-search-path: ${recording_path}" >> "${GUAC_PROPERTIES_FILE}"
|
||||
fi
|
||||
@@ -1,3 +1,5 @@
|
||||
## 25.10.1-2 (18-12-2025)
|
||||
- Minor bugs fixed
|
||||
## 25.10.1-4 (01-12-2025)
|
||||
- Minor bugs fixed
|
||||
## 25.10.1-3 (29-11-2025)
|
||||
|
||||
@@ -30,20 +30,13 @@ ENV READ_WRITE_FOLDERS="$READ_WRITE_FOLDERS $NETALERTX_DATA"
|
||||
##################
|
||||
|
||||
# Add rootfs
|
||||
COPY rootfs/ /
|
||||
RUN chown 102:102 /etc/cont-init.d/* && \
|
||||
chmod +x /etc/cont-init.d/* && \
|
||||
\
|
||||
# Install bashio
|
||||
BASHIO_VERSION="0.14.3" && \
|
||||
COPY --chown=102:102 rootfs/ /
|
||||
RUN BASHIO_VERSION="0.14.3" && \
|
||||
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 && \
|
||||
mv /tmp/bashio/lib /usr/lib/bashio && \
|
||||
ln -s /usr/lib/bashio/bashio /usr/bin/bashio && \
|
||||
rm -rf /tmp/bashio && \
|
||||
\
|
||||
# Install packages
|
||||
apk add jq
|
||||
curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.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/
|
||||
|
||||
############
|
||||
# 5 Labels #
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
#!/usr/bin/with-contenv /tmp/bashio/lib/bashio
|
||||
# shellcheck shell=bash
|
||||
set -e
|
||||
|
||||
|
||||
@@ -99,3 +99,5 @@ else
|
||||
wait_for_config_file &
|
||||
true
|
||||
fi
|
||||
|
||||
sudo -u "#${PUID}" -g "#${PGID}" /bin/sh /entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user