Files
hassio-addons/grav/rootfs/etc/cont-init.d/20-folders.sh
2023-10-03 20:02:29 +02:00

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"