WDCommunity / wdpksrc

Cross compilation framework to create native packages for the Western Digital My Cloud
BSD 3-Clause "New" or "Revised" License
218 stars 57 forks source link

Upgrading to new Duplicati version and fixing config location (DUPLICATI_HOME) #19

Closed mousi closed 5 years ago

mousi commented 5 years ago

Upgraded duplicati to version v2.0.3.11-2.0.3.11_canary_2018-09-05 and added DUPLICATI_HOME variable to save configuration to a persistent location

stefaang commented 5 years ago

We'll need to ensure that the DUPLICATI_HOME directory exists. Please add a mkdir -p $DUPLICATI_HOME to install.sh

I don't like to clutter the Nas_Prog dir but Plex does it this way as well.

mousi commented 5 years ago

I tested that as is (after making sure the directory doesn't exist) and duplicati creates the directory so I skipped that on purpose because otherwise we need to check if the directory exists so we don't overwrite it.

stefaang commented 5 years ago

mkdir -p creates a dir if it doesn't exist, but doesn't complain if it does. The goal is that the config must survive an upgrade of the app (which is stop-clean-remove of the old app + install of new app).