mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-03-14 08:54:22 +01:00
Merge branch 'master' of https://github.com/alexbelgium/hassio-addons
This commit is contained in:
@@ -1,2 +1,21 @@
|
||||
### 15.3-11 (08-09-2023)
|
||||
- Minor bugs fixed
|
||||
DON'T UPDATE NOT WORKING
|
||||
|
||||
### 15.3-10 (08-09-2023)
|
||||
- Minor bugs fixed
|
||||
### 15.3-9 (08-09-2023)
|
||||
- Minor bugs fixed
|
||||
### 15.3-7 (07-09-2023)
|
||||
- Minor bugs fixed
|
||||
### 15.3-6 (07-09-2023)
|
||||
- Minor bugs fixed
|
||||
### 15.3-5 (07-09-2023)
|
||||
- Minor bugs fixed
|
||||
### 15.3-2 (07-09-2023)
|
||||
- Minor bugs fixed
|
||||
- Ensure postgres.conf persistcene
|
||||
|
||||
## 15.3
|
||||
- Initial release
|
||||
- Removed useless webui button
|
||||
|
||||
@@ -25,8 +25,8 @@ FROM postgres:15-alpine
|
||||
# Set S6 wait time
|
||||
ENV S6_CMD_WAIT_FOR_SERVICES=1 \
|
||||
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
|
||||
S6_SERVICES_GRACETIME=0 \
|
||||
S6_STAGE2_HOOK=/ha_entrypoint.sh
|
||||
S6_SERVICES_GRACETIME=0
|
||||
|
||||
|
||||
RUN \
|
||||
# Correct for access
|
||||
@@ -68,7 +68,8 @@ RUN if ! command -v bash >/dev/null 2>/dev/null; then (apt-get update && apt-get
|
||||
################
|
||||
|
||||
# Add entrypoint
|
||||
ADD --chmod=744 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
|
||||
ENV S6_STAGE2_HOOK=/ha_entrypoint.sh
|
||||
ADD --chmod=777 "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_entrypoint.sh" "/ha_entrypoint.sh"
|
||||
|
||||
# Entrypoint modifications
|
||||
RUN \
|
||||
@@ -78,7 +79,6 @@ RUN \
|
||||
#Correct shebang in entrypoint
|
||||
for shebang in "/command/with-contenv bashio" "/usr/bin/env bashio" "/bin/bash" "/bin/sh"; do [[ -f "${shebang%% *}" ]] && break; done; sed -i "s|/command/with-contenv bashio|$shebang|g" /ha_entrypoint.sh
|
||||
|
||||
|
||||
WORKDIR /data
|
||||
ENTRYPOINT [ "/usr/bin/env" ]
|
||||
CMD [ "/ha_entrypoint.sh" ]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
## ⚠ Open Issue : [🐛 [Postgres] Custom configuration cannot be applied (and overwritten instead) (opened 2023-08-28)](https://github.com/alexbelgium/hassio-addons/issues/971) by [@interkelstar](https://github.com/interkelstar)
|
||||
## ⚠ Open Issue : [🐛 [POSTGRES] env: cant execute /ha_entrypoint.sh: No such file or directory (opened 2023-09-07)](https://github.com/alexbelgium/hassio-addons/issues/983) by [@swap83](https://github.com/swap83)
|
||||
# Home assistant add-on: Postgres
|
||||
|
||||
[![Donate][donation-badge]](https://www.buymeacoffee.com/alexbelgium)
|
||||
|
||||
@@ -34,5 +34,5 @@
|
||||
},
|
||||
"slug": "postgres",
|
||||
"url": "https://github.com/alexbelgium/hassio-addons",
|
||||
"version": "15.3-test6"
|
||||
"version": "15.3-11"
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
CONFIG_HOME="$(bashio::config "CONFIG_LOCATION")"
|
||||
CONFIG_HOME="$(dirname "$CONFIG_HOME")"
|
||||
mkdir -p "$CONFIG_HOME"
|
||||
if [ ! -f "$CONFIG_HOME"/postgresql.conf.sample ]; then
|
||||
if [ ! -f "$CONFIG_HOME"/postgresql.conf ]; then
|
||||
# Copy default config.env
|
||||
if [ -f /usr/local/share/postgresql/postgresql.conf.sample ]; then
|
||||
cp /usr/local/share/postgresql/postgresql.conf.sample "$CONFIG_HOME"/postgresql.conf
|
||||
@@ -23,7 +23,7 @@ fi
|
||||
# Creating config location
|
||||
mkdir -p "$PGDATA"
|
||||
chown -R postgres:postgres "$PGDATA"
|
||||
chmod 1777 "$PGDATA"
|
||||
chmod 777 "$PGDATA"
|
||||
|
||||
# Permissions
|
||||
chmod -R 777 "$CONFIG_HOME"
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Reference in New Issue
Block a user