mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-27 09:46:04 +02:00
Externalize cache
This commit is contained in:
@@ -70,6 +70,15 @@ if [ -d /var/run/s6/container_environment ]; then printf "%s" "$LOCATION" > /var
|
|||||||
echo "Creating $LOCATION"
|
echo "Creating $LOCATION"
|
||||||
mkdir -p "$LOCATION"
|
mkdir -p "$LOCATION"
|
||||||
|
|
||||||
|
# Create cache
|
||||||
|
mkdir -p /.cache
|
||||||
|
chmod 777 /.cache
|
||||||
|
if [ -d "/config/.cache" ]; then
|
||||||
|
cp -rf /config/.cache /.cache
|
||||||
|
rm -r /config/.cache
|
||||||
|
fi
|
||||||
|
ln -sf /config/.cache /.cache
|
||||||
|
|
||||||
# Set ownership
|
# Set ownership
|
||||||
bashio::log.info "Setting ownership to $PUID:$PGID"
|
bashio::log.info "Setting ownership to $PUID:$PGID"
|
||||||
chown -R "$PUID":"$PGID" "$LOCATION"
|
chown -R "$PUID":"$PGID" "$LOCATION"
|
||||||
|
|||||||
Reference in New Issue
Block a user