mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Change config folder
https://github.com/alexbelgium/hassio-addons/issues/599
This commit is contained in:
@@ -7,11 +7,11 @@ CONFIGSOURCE="/config/addons_config/fireflyiii_fints_importer"
|
|||||||
mkdir -p "$CONFIGSOURCE"
|
mkdir -p "$CONFIGSOURCE"
|
||||||
|
|
||||||
# If no file, provide example
|
# If no file, provide example
|
||||||
[ ! "$(ls -A "${CONFIGSOURCE}")" ] && cp -rn /app/configurations/* "$CONFIGSOURCE"/
|
[ ! "$(ls -A "${CONFIGSOURCE}")" ] && cp -rn /data/configurations/* "$CONFIGSOURCE"/
|
||||||
|
|
||||||
# Create symlinks
|
# Create symlinks
|
||||||
rm -r /app/configurations
|
rm -r /data/configurations
|
||||||
ln -sf "$CONFIGSOURCE" /app/configurations
|
ln -sf "$CONFIGSOURCE" /data/configurations
|
||||||
|
|
||||||
# Make sure permissions are right
|
# Make sure permissions are right
|
||||||
chown -R "$(id -u):$(id -g)" "$CONFIGSOURCE"
|
chown -R "$(id -u):$(id -g)" "$CONFIGSOURCE"
|
||||||
|
|||||||
Reference in New Issue
Block a user