Rclone curl install issue

Hello, I used rclone curl install via bash ( curl https://rclone.org/install.sh | sudo bash )

Such procedure is amazing, but did made a ~/.config/rclone owned by root. I had to change owner manually.

I think that directory above was created by version=rclone --version 2>>errors | head -n 1 row near the end of installer.

Many thanks

I just tried this on a fresh debian VM and it didn’t create a config file.

What OS did you try on?

Can you move the config file out the way and try again to double check?

Thanks

Sorry for late answer. Did the same in a VM (Fusion) running Lubuntu Xenial 16.04.4 32 bit

Maybe there was a misunderstanding: it does not create a config file, it creates the dir rclone (empty) in .config dir of user home, but owned by root.

Here is the paste: https://pastebin.com/SiLWpFrx

I’ll try to explain clearer: maybe running for the very first time “rclone --version” (as in the install script) creates only the ~/.config/rclone directory. But, since install script is running as root, this directory is owned by root and not normal user writeable.
After install, when you try to create a config file as a normal user, rclone fails because of ~/.config/rclone owner/permissions.

Oh I see! Thank you for explaining again - I didn’t read your first post carefully enough, sorry.

Yes this is a bug that needs fixing. In fact I think it is two bugs which need fixing, firstly rclone version shouldn’t really care about the config file, and secondly the install script shouldn’t provoke that bug.

I made a new issue about this: https://github.com/ncw/rclone/issues/2127

I’ve put in a work-around in https://github.com/ncw/rclone/commit/b6058e0106cb9f155a2e3d5a575dd74c3457bfc7 and uploaded a new install.sh.