Config Create to specific location

I use the full command and enter the command line and the passwords are encrypted as that's normal.


[Sharepoint]
type = webdav
vendor = sharepoint
user = user1@outlook.com
pass = JGAiVOb3LlZvyWRaMKSgIBRtgo_aAD13jts
url = https://google.com/

[testsp]
type = webdav
url = https://blah.com
vendor = sharepoint
user = test@joe.com
pass = wXdA2D5r6Kb6zmry_4EbOe6SYcMvHu3F

Don't understand why mine is not????

Same commands see out in conf file

[test2]
type = webdav
url = https://google.com/
vendor = sharepoint
user = user1@outlook.com
pass = OvM9hiUeMWXWmfA5cPvao5Qnog_Tow4S

[Sharepoint]
type = webdav
vendor = sharepoint
user = user1@outlook.com
pass = yek9gEPSFXNP5yKF2PCr5FAUNE2zdp
url = https://google.com/

I take one letter off the end of the password and it works? Crazy

Yeah, that's why I tend to ask for the same thing so we can replicate the issue.

That looks like a bug with the terms of the length of the password as it should not do that.

@ncw - is there a max on password length as if I use yek9gEPSFXNP5yKF2PCr5FAUNE2zd it doesn't encrypt it but yek9gEPSFXNP5yKF2PCr5FAUNE2z works.

Works fine if you do I manually though. I can reduce the password length but good to know if there is with that specific command.

Kind Regards

Jack

config create tries to guess whether passwords are obscured or not. It you put in in a very long password made entirely of A-Za-z0-9 then it can get confused.

You can use rclone config password to set the password separately.

See https://github.com/rclone/rclone/issues/3728 for some discussion.

Hello @ncw

Thank you for your reply. I have all my script working fine now in terminal however I am pulling my hair out when trying to run it inside a pkg. The pkg runs as root and I have run the commands in terminal as root and they work fine but not in the pkg. Extracted the content and run the post install script which works fine.

It seems the pkg is not acknowledging that rclone command is a proper command and just skips to the end of the script not performing any of my script at all. Please see script below:


#Configure RClone to Sharepoint - DOT NOT EDIT!#

sudo -- bash -c 'export RCLONE_CONFIG=/tmp/rclone.conf;sudo rclone config create Sharepoint webdav url https://URL vendor sharepoint user USER@DOMAIN.onmicrosoft.com pass PASSWORD'

#Download software - INPUT YOUR SOFTWARE PATH#

sudo rclone sync --progress --ignore-size Sharepoint:"PATH TO PKG" /Users/Shared/

#Install Software - INSTALL SCRIPT#

sudo installer -pkg "/Users/Shared/INSTALLER FILE" -target /

#Remove installer File#

sudo rm "/Users/Shared/INSTALLER FILE"

exit 0

At a guess rclone is not on the path in that execution environment? Try using the full path to rclone.

Thank you I have to specify /usr/local/bin/rclone at the start of my rclone commands and everything working like a charm now.

Kind Regards

Jack

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.