This commit is contained in:
Alexandre
2022-01-17 13:18:05 +01:00
parent 0b0b471cbe
commit a22ce94a46
67 changed files with 263 additions and 207 deletions

View File

@@ -1,5 +1,6 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
for k in $(bashio::jq "${__BASHIO_ADDON_CONFIG}" 'keys | .[]'); do
printf "$(bashio::config $k)" > /var/run/s6/container_environment/$k
printf "$(bashio::config $k)" >/var/run/s6/container_environment/$k
done

View File

@@ -1,12 +1,12 @@
#!/usr/bin/with-contenv bashio
# shellcheck shell=bash
echo "Updating folders..."
echo "Updating folders..."
for FOLDERS in "/share/grav" "/app/grav-admin/backup"
do
for FOLDERS in "/share/grav" "/app/grav-admin/backup"; do
echo "... $FOLDERS"
mkdir -p $FOLDERS
chown -R abc:abc $FOLDERS
done
bashio::log.warning "If error of missing folder when loading addon, just restart"
bashio::log.warning "If error of missing folder when loading addon, just restart"