Set up an instance of Mastodon for Kosmos
Refs #19 Use new application cookbook, update our cookbooks
This commit is contained in:
10
cookbooks/git/templates/default/git-xinetd.d.erb
Normal file
10
cookbooks/git/templates/default/git-xinetd.d.erb
Normal file
@@ -0,0 +1,10 @@
|
||||
service git
|
||||
{
|
||||
disable = no
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = nobody
|
||||
server = <%= @git_daemon_binary %>
|
||||
server_args = --base-path=<%= node["git"]["server"]["base_path"] %> <%= node['git']['server']['export_all'] ? '--export-all' : nil %> --syslog --inetd --verbose
|
||||
log_on_failure += USERID
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec svlogd -tt ./main
|
||||
3
cookbooks/git/templates/default/sv-git-daemon-run.erb
Normal file
3
cookbooks/git/templates/default/sv-git-daemon-run.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
exec 2>&1
|
||||
exec /usr/bin/git daemon <%= node['git']['server']['export_all'] ? '--export-all' : nil %> --user=nobody --group=daemon --syslog --base-path=<%= node["git"]["server"]["base_path"] %> <%= node["git"]["server"]["base_path"] %>
|
||||
Reference in New Issue
Block a user