diff options
author | elijah <elijah@riseup.net> | 2012-10-24 04:08:21 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-10-24 04:08:21 -0700 |
commit | 4329fe1fbee49c51ebd0a810803f7714d31e5767 (patch) | |
tree | b653e5f65374d10fba87de14cfddce1017f62060 /lib/leap_cli/remote | |
parent | e18f49b72d458d25747133f1bb9ec67a2642c83e (diff) |
use new hardcoded paths /etc/leap and /srv/leap
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 # |