mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
16 lines
325 B
Bash
Executable File
16 lines
325 B
Bash
Executable File
#!/usr/bin/with-contenv bashio
|
|
# shellcheck shell=bash
|
|
set -e
|
|
|
|
# Define home
|
|
# Creating config location
|
|
echo "Creating config location ..."
|
|
HOME="$(bashio::config "CONFIG_LOCATION")"
|
|
HOME="$(dirname "$HOME")"
|
|
mkdir -p "$HOME"
|
|
chmod -R 777 "$HOME"
|
|
|
|
# Copy files to data
|
|
echo "Copying files if needed..."
|
|
cp -rnf /fgc/* /data/
|