mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
Only move files if present
https://github.com/alexbelgium/hassio-addons/issues/1878#issuecomment-2911041638
This commit is contained in:
@@ -57,8 +57,9 @@ chown "$PUID":"$PGID" "$LOCATION"
|
||||
####################
|
||||
|
||||
if [ -d /homeassistant/addons_config/calibre-web ]; then
|
||||
echo "Moving database to new location /config"
|
||||
cp -rf /homeassistant/addons_config/calibre-web/* "$LOCATION"/
|
||||
rm -r /homeassistant/addons_config/calibre-web
|
||||
if [ "$(ls -A /homeassistant/addons_config/calibre-web)" ]; then
|
||||
echo "Moving database to new location /config"
|
||||
cp -rf /homeassistant/addons_config/calibre-web/* "$LOCATION"/
|
||||
fi
|
||||
rm -r /homeassistant/addons_config/calibre-web
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user