From 4329fe1fbee49c51ebd0a810803f7714d31e5767 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 24 Oct 2012 04:08:21 -0700 Subject: use new hardcoded paths /etc/leap and /srv/leap --- lib/leap_cli/remote/plugin.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/leap_cli/remote') 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 # -- cgit v1.2.3