Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing with configurable mounting folder "conf", "logs" and "addons" #40

Closed
cniweb opened this issue Nov 28, 2016 · 7 comments
Closed

Comments

@cniweb
Copy link
Member

cniweb commented Nov 28, 2016

Installing OH2 with configurable mounting folder "conf", "logs" and "addons"

@cniweb cniweb changed the title Installing with configurable mounting folder "conf" Installing with configurable mounting folder "conf", "logs" and "addons" Nov 28, 2016
@yphyph01
Copy link

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
`

@cniweb
Copy link
Member Author

cniweb commented Jan 26, 2017

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

@darth-hp
Copy link

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

@darth-hp
Copy link

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.

@darth-hp
Copy link

darth-hp commented Feb 12, 2017

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

@cniweb cniweb closed this as completed Mar 14, 2017
@keepsmilyn
Copy link

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??

@keepsmilyn
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants