diff options
| author | Joey Hess <joeyh@joeyh.name> | 2016-02-26 11:02:36 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2016-02-26 11:02:36 -0400 |
| commit | 1501509f5dfb5c93fd572f472756c96905d41ce4 (patch) | |
| tree | a5cdac1f0e5d9ee8a2dfaf701ed7b7fb498e5d72 /src/Propellor/Property/OS.hs | |
| parent | 0cba8dec39447f030c0f765d1d84a1c2466b9bfc (diff) | |
Removed Ssh.unauthorizedKey and made Ssh.authorizedKey revertable. (API change)
Diffstat (limited to 'src/Propellor/Property/OS.hs')
| -rw-r--r-- | src/Propellor/Property/OS.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/OS.hs b/src/Propellor/Property/OS.hs index 5678b818..5f1adddb 100644 --- a/src/Propellor/Property/OS.hs +++ b/src/Propellor/Property/OS.hs @@ -221,7 +221,7 @@ preserveRootSshAuthorized :: Property NoInfo preserveRootSshAuthorized = check (fileExist oldloc) $ property (newloc ++ " copied from old OS") $ do ks <- liftIO $ lines <$> readFile oldloc - ensureProperties (map (Ssh.authorizedKey (User "root")) ks) + ensureProperties (map (setupRevertableProperty . Ssh.authorizedKey (User "root")) ks) where newloc = "/root/.ssh/authorized_keys" oldloc = oldOSDir ++ newloc |
