diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-04-01 12:26:23 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-04-01 12:26:23 -0400 |
| commit | 0886c13ee6495010cb236c2c6dddf17d617aeb4f (patch) | |
| tree | 940d6c8c41041b7732feb44afb4a836960d97f2f | |
| parent | 16172a6485d0b859b71dacada85595647f456823 (diff) | |
propellor spin
| -rw-r--r-- | config-joey.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config-joey.hs b/config-joey.hs index 10b363a5..3b30daed 100644 --- a/config-joey.hs +++ b/config-joey.hs @@ -305,6 +305,7 @@ beaver = host "beaver.kitenet.net" iabak :: Host iabak = host "ia-bak.joeyh.name" & ipv4 "124.6.40.227" + & os (System (Debian Testing) "amd64") & Apt.installed ["git"] & Apt.installed ["etckeeper"] & Apt.installed ["ssh"] @@ -317,9 +318,11 @@ iabak = host "ia-bak.joeyh.name" & Git.cloned "root" repo "/usr/local/IA.BAK" (Just "server") & 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"] + & cmdProperty "ln" ["-sf", "/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" + & Cron.niceJob "shardstats" (Cron.Times "*/30 * * * *") "root" "/" + "/usr/local/IA.BAK/shardstats SHARD1" where repo = "https://github.com/ArchiveTeam/IA.BAK/" |
