diff options
Diffstat (limited to 'lib/leap_cli/remote')
| -rw-r--r-- | lib/leap_cli/remote/plugin.rb | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/lib/leap_cli/remote/plugin.rb b/lib/leap_cli/remote/plugin.rb index 22ffe34..3fb5160 100644 --- a/lib/leap_cli/remote/plugin.rb +++ b/lib/leap_cli/remote/plugin.rb @@ -4,8 +4,12 @@  module LeapCli; module Remote; module Plugin -  def mkdir_leap(base_dir) -    run "mkdir -p #{base_dir}/config && chown -R root #{base_dir} && chmod -R ag-rwx,u+rwX #{base_dir}" +  def mkdir(dir) +    run "mkdir -p #{dir}" +  end + +  def chown_root(dir) +    run "chown root -R #{dir} && chmod -R ag-rwx,u+rwX #{dir}"    end    # | 
