diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-04-21 23:08:10 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-04-21 23:08:10 -0400 |
| commit | d3dbdb1f4d47142c20a498dc9279e480900b86c5 (patch) | |
| tree | e014f2827a11f00e48f24d016e1f5c81a2fc8522 | |
| parent | dc22e14341b879bc1a7d9f2897bb9e7d511cbf6b (diff) | |
propellor spin
| -rw-r--r-- | src/Propellor/Property/SiteSpecific/IABak.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Propellor/Property/SiteSpecific/IABak.hs b/src/Propellor/Property/SiteSpecific/IABak.hs index 7813b7eb..d89e85fb 100644 --- a/src/Propellor/Property/SiteSpecific/IABak.hs +++ b/src/Propellor/Property/SiteSpecific/IABak.hs @@ -39,8 +39,11 @@ registrationServer knownhosts = propertyList "iabak registration server" $ props & Git.cloned "registrar" userrepo "/home/registrar/users" (Just "master") & Apt.serviceInstalledRunning "apache2" & Apt.installed ["perl", "perl-modules"] - & cmdProperty "ln" ["-sf", "/home/registrar/IA.BAK/registrar/register.cgi", "/usr/lib/cgi-bin/register.cgi"] + & cmdProperty "ln" ["-sf", "/home/registrar/IA.BAK/registrar/register.cgi", link] + & cmdProperty "chown" ["-h", "registrar:registrar", link] & File.containsLine "/etc/sudoers" "www-data ALL=(registrar) NOPASSWD:/home/registrar/IA.BAK/registrar/register.pl" + where + link = "/usr/lib/cgi-bin/register.cgi" graphiteServer :: Property HasInfo graphiteServer = propertyList "iabak graphite server" $ props |
