MatchbookLab / local-persist

Create named local volumes that persist in the location(s) you want
MIT License
851 stars 122 forks source link

issue on installing #99

Closed killmasta93 closed 1 year ago

killmasta93 commented 1 year ago

Hi currently trying to install on ubuntu 20.04 normally it worked before but im getting

curl -fsSL https://raw.githubusercontent.com/MatchbookLab/local-persist/master/scripts/install.sh | sudo bash
dirname: missing operand
Try 'dirname --help' for more information.
/
nigel914 commented 1 year ago

I believe this is happening because the link is downloading the entire page instead of the "systemd.service" file itself

nguyenleminhquan commented 1 year ago

i also enter this issue when using install script on Ubuntu 18.04

FriedCircuits commented 1 year ago

I worked around this by using the previous commit, for example: https://raw.githubusercontent.com/CWSpear/local-persist/45c5c344d5dfd358c28d7148be48302d20456fac/scripts/install.sh.

In my case it might of been an issue running in Ansible and $BASH_SOURCE returning empty. I created a test script, ran the snippet manually, and it worked fine.

killmasta93 commented 1 year ago

yeah that did the trick