mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-10 09:51:02 +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
|
if [ -d /homeassistant/addons_config/calibre-web ]; then
|
||||||
echo "Moving database to new location /config"
|
if [ "$(ls -A /homeassistant/addons_config/calibre-web)" ]; then
|
||||||
cp -rf /homeassistant/addons_config/calibre-web/* "$LOCATION"/
|
echo "Moving database to new location /config"
|
||||||
rm -r /homeassistant/addons_config/calibre-web
|
cp -rf /homeassistant/addons_config/calibre-web/* "$LOCATION"/
|
||||||
|
fi
|
||||||
|
rm -r /homeassistant/addons_config/calibre-web
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user