
3 Nov
2020
3 Nov
'20
8:51 a.m.
+ File.open("#{default_yaml_dir}/#{account}.yaml", 'a') do |file|
#{account} => account I mean literal 'account.yaml' Thanks, Fengguang
+ %x(chown -R #{account}:#{account} "/home/#{account}/.config")
That function variable $account can better be $login_name man ssh -l login_name Specifies the user to log in as on the remote machine. This also may be specified on a per-host basis in the configuration file. Thanks, Fengguang