bobafetthotmail / folder2ram

mount those folders to ram without losing access to their counterpart on disk!
GNU General Public License v3.0
110 stars 21 forks source link

`-enablesystemd` should find itself the installed script path #22

Open kumy opened 2 years ago

kumy commented 2 years ago

I prefer to have manually installed scripts under /usr/local/ folder. So I've put the script at /usr/local/sbin/folder2ram. Then when running the systemd configuration, it generates the services files using hard coded script path as /sbin/folder2ram.

It would have been nice if the script generate unit files using the real and current installation path.

It could have used which or realpath $0, no?

bobafetthotmail commented 2 years ago

Yes, it should not be a problem to make this change, but it's somewhat secondary so I can't guarantee I will do this in a short time.

If you want to do this and open a PR, I will merge it.