mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-19 12:30:32 +02:00
first test version https://github.com/alexbelgium/hassio-addons/issues/747
This commit is contained in:
14
free_games_claimer/rootfs/etc/cont-init.d/20-folders.sh
Normal file
14
free_games_claimer/rootfs/etc/cont-init.d/20-folders.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# 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 /fsg/* /data/
|
||||
Reference in New Issue
Block a user