summaryrefslogtreecommitdiff
path: root/config-joey.hs
diff options
context:
space:
mode:
authorJoey Hess2015-04-01 11:37:18 -0400
committerJoey Hess2015-04-01 11:37:18 -0400
commit16172a6485d0b859b71dacada85595647f456823 (patch)
tree8c368dc7a7fe438bc3c14e4281e73b6cac2bb1ee /config-joey.hs
parent85b01d02ed705a0c454fd093968a7fd0d08aa8ef (diff)
propellor spin
Diffstat (limited to 'config-joey.hs')
-rw-r--r--config-joey.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/config-joey.hs b/config-joey.hs
index ef90a469..10b363a5 100644
--- a/config-joey.hs
+++ b/config-joey.hs
@@ -315,9 +315,11 @@ iabak = host "ia-bak.joeyh.name"
& Sudo.enabledFor "joey"
& GitHome.installedFor "joey"
& Git.cloned "root" repo "/usr/local/IA.BAK" (Just "server")
- & Git.cloned "root" repo "/usr/local/IA.BAK/pubkeys" (Just "pubkey")
+ & Git.cloned "www-data" repo "/usr/local/IA.BAK/pubkeys" (Just "pubkey")
& Apt.serviceInstalledRunning "apache2"
& cmdProperty "ln" ["-s", "/usr/local/IA.BAK/pushme.cgi", "/usr/lib/cgi-bin/pushme.cgi"]
+ & Apt.installed ["sudo"]
+ & File.containsLine "/etc/sudoers" "www-data ALL=NOPASSWD:/usr/local/IA.BAK/pushed.sh"
where
repo = "https://github.com/ArchiveTeam/IA.BAK/"