mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
14 lines
319 B
Bash
Executable File
14 lines
319 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
echo "Updating folders..."
|
|
|
|
for FOLDERS in "/share/grav" "/app/grav-admin/backup"; do
|
|
echo "... $FOLDERS"
|
|
mkdir -p $FOLDERS
|
|
chown -R "$PUID:$PGID" $FOLDERS
|
|
done
|
|
|
|
bashio::log.warning "If error of missing folder when loading addon, just restart"
|