openhab / openhab-syno-spk

openHAB Synology SPK Install Package
Eclipse Public License 2.0
161 stars 42 forks source link

link addons and conf data to /volume1/homes/openhab2/ #63

Closed andreabisiach closed 7 years ago

andreabisiach commented 7 years ago

Hello,

this is a suggestion. The idea of being able to manage configuration from a share is great but I would suggest the following approach in the spk installer (since you are creating the user openhab2)

Test if conf is found under /volume1/homes/openhab2/ If yes link to it if not try /volume1/public/openhab2/ if yes link to it otherwise keep it to /volume1/@appstore/openHAB2

Same procedure for addons

Lastly, during uninstallation, do not remove the user openhab2

cniweb commented 7 years ago

Is it still relevant? What do others think about this?

Baumi1245 commented 7 years ago

/volume1/homes/openhab2/ is deleted if openhab is uninstalled...

no matter what happens... i want to delete these files myselfe.

I still hope, that i can select the installation-folder - I want to have my stuff in "SmartHome" not in "public"

;-)

andreabisiach commented 7 years ago

Yes still relevant :-)

And yes, do not delete the openhab2 user or the home folder :-)

" Lastly, during uninstallation, do not remove the user openhab2 "

cniweb commented 7 years ago

This could be requested during the installation and deinstallation.

  1. User to be created / deleted
  2. Installation folder for config files
Baumi1245 commented 7 years ago

/volume1/public/openhab2/ /volume1/homes/openhab2/ /volume1/SmartHome/openhab2/

Maybe it´s possible to select the installation folder via Drop-Down (public by default) - so we both have what we want...

cniweb commented 7 years ago

@SchoppAx We can use the WIZARD_UIFILES for this: https://developer.synology.com/developer-guide/synology_package/WIZARD_UIFILES.html

cniweb commented 7 years ago

I think it works, so I close this issue?

rberger commented 5 years ago

It looks like conf and addons are not being copied over from /volume1/@appstore/openHAB into /volume1/SmartHome/openHAB/ and then linked back to /volume1/@appstore/openHAB

I.E. after I just did a fresh install, /volume1/@appstore/openHAB/userdata was properly set up but there was no conf or addons in /volume1/@appstore/openHAB/ but they were still in /volume1/@appstore/openHAB

It made it difficult to do a manual install of an add-on.

Not sure if this is a bug or feature.

cniweb commented 5 years ago

What is the different between /volume1/@appstore/openHAB/ and /volume1/@appstore/openHAB in your comment?