DietPi / OPen Media Vault: "#!/bin/sh -l" doesnt work

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
iswego
Posts: 4
Joined: Mon Jun 11, 2018 4:03 pm

DietPi / OPen Media Vault: "#!/bin/sh -l" doesnt work

Post by iswego »

Hi there,

I installed Open Media Vault on my dietpi system.
For recurring task Open Media Vault provides the oportunity to "plugin" in the cron logic.

The scripts that are genareted by Open Media Vault start with "#!/bin/sh -l" which causes an error during execution:
" /DietPi/dietpi/func/dietpi-globals: Syntax error: Bad function name".

Leaving ou the"-l" works, but cant be configured within Open Media Vault.

Can someone help me? Whats wrong about "-l" in "#!/bin/sh -l" ?

Thx!!!!!
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: DietPi / OPen Media Vault: "#!/bin/sh -l" doesnt work

Post by Fourdee »

Hi,

Thanks for the report.

Officially we do not support OMV with DietPi due to OMV incompatibilities: https://github.com/Fourdee/DietPi/issue ... -368471946

EG: Just one example, DietPi-Drive manager can see all non-DietPi added /etc/fstab entries. OMV can not.

Regardless, how did you install OMV on your system (eg: online guide?)
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
iswego
Posts: 4
Joined: Mon Jun 11, 2018 4:03 pm

Re: DietPi / OPen Media Vault: "#!/bin/sh -l" doesnt work

Post by iswego »

Yes, Online guide. Everything works fine so far. Except the cron jobs generated by omv.
When T replace /bin/sh -l with /bin/sh it works. Thats my workaround for the moment,...
bartaspoz
Posts: 2
Joined: Fri Oct 27, 2017 9:40 am

Re: DietPi / OPen Media Vault: "#!/bin/sh -l" doesnt work

Post by bartaspoz »

Maybe you could consider re-adding OMV to DietPI software list? Just make a clear statement/warning during instalation about known issues. It would be really great to have it back. I'm sure that many would agree with me.
kamilmirza
Posts: 13
Joined: Tue Mar 21, 2017 10:13 am

Re: DietPi / OPen Media Vault: "#!/bin/sh -l" doesnt work

Post by kamilmirza »

yup same here
really want to see omv in supported list
Post Reply