Giter VIP home page Giter VIP logo

Comments (7)

hphde avatar hphde commented on May 26, 2024 1

Just stumbled across the following which can also be used:
mkdir -p /volume1/public/openHAB2/conf
mount -o bind /volume1/@appstore/openHAB2/conf /volume1/public/openHAB2/conf

from openhab-syno-spk.

keepsmilyn avatar keepsmilyn commented on May 26, 2024 1

Had to use sudo infront of the mount command to get it to work.

from openhab-syno-spk.

yphyph01 avatar yphyph01 commented on May 26, 2024

After a fresh new installation using Release 2.0 DSM6, I modified the openHAB2 installation to relocate the addons, conf and logs folders.
Using Symbolic links, relocation of those folrders were working on openHAB1.8, but I couldn't achieve to have them working on openHAB2.
So instead of relocating the folders, I've create external links to them to have acess to those folders from my /volume1/public folder.
Here are the commands:
admin@DiskStation:/volume1/public$ mkdir openHAB2/ admin@DiskStation:/volume1/public$ cd openHAB2/ admin@DiskStation:/volume1/public/openHAB2$ ln -s /volume1/@appstore/openHAB2/co nf conf admin@DiskStation:/volume1/public/openHAB2$ ln -s /volume1/@appstore/openHAB2/ad dons addons admin@DiskStation:/volume1/public/openHAB2$ ln -s /volume1/@appstore/openHAB2/us erdata/logs logs

and the results:

admin@DiskStation:/volume1/public/openHAB2$ dir
total 12
drwxrwxrwx+ 1 admin users 28 Jan 25 16:19 .
drwxrwxrwx+ 1 root root 632 Jan 25 16:17 ..
lrwxrwxrwx 1 admin users 34 Jan 25 16:19 addons -> /volume1/@appstore/openHAB2 /addons
lrwxrwxrwx 1 admin users 32 Jan 25 16:18 conf -> /volume1/@appstore/openHAB2/c onf
lrwxrwxrwx 1 admin users 41 Jan 25 16:19 logs -> /volume1/@appstore/openHAB2/u serdata/logs
`

from openhab-syno-spk.

cniweb avatar cniweb commented on May 26, 2024

I think, the config from OH2 was diffrent to OH1, see:
http://docs.openhab.org/tutorials/migration.html

from openhab-syno-spk.

hphde avatar hphde commented on May 26, 2024

With #48 I removed outcommented parts which had no use (for me) in the installer.sh - these where meant to create the links.

During todays installation I realized the following in the description If the directory /volume1/public/openHAB2/conf exists, this directory will be used for all openHAB2 configuration files.

Let's try a two-step here:

  • remove that part of the description because it's currently not working
  • get back the missing parts to introduce the new behaviour of openHAB2 and bring back the info in the description and docs

@cniweb @yphyph01

from openhab-syno-spk.

hphde avatar hphde commented on May 26, 2024

I had no luck creating links at first, means they did not appear in the SMB mount. I figured out that the SMB service requires extra settings to allow this, but provides potential access to other shared folders. Well, I think that's okay for a home usage but maybe it makes more sense to tell openHAB2 where the conf folder is.

But linking the other way round is working for me. So that might be the better approach.

from openhab-syno-spk.

keepsmilyn avatar keepsmilyn commented on May 26, 2024

That looked like a terrific fix for me, but unfortunately I get the following error when trying to 'mount': mount: only root can use "--options" option. Sigh! Any work around for this??

from openhab-syno-spk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.