summaryrefslogtreecommitdiffstats
path: root/roles/git
diff options
context:
space:
mode:
Diffstat (limited to 'roles/git')
-rw-r--r--roles/git/files/etc/gitweb.conf2
-rw-r--r--roles/git/files/lib/systemd/system/gitweb.service1
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/git/files/etc/gitweb.conf b/roles/git/files/etc/gitweb.conf
index 8c1dd61..0d667b7 100644
--- a/roles/git/files/etc/gitweb.conf
+++ b/roles/git/files/etc/gitweb.conf
@@ -2,39 +2,39 @@ $site_name = "Fripost Git";
# path to git projects (<project>.git)
$projectroot = "/var/lib/gitolite/repositories";
# directory to use for temp files
$git_temp = "/tmp";
# target of the home link on top of all pages
#$home_link = $my_uri || "/";
# html text to include at home page
$home_text = "";
# file with project list; by default, simply scan the projectroot dir.
$projects_list = "/var/lib/gitolite/projects.list";
#$projects_list = $projectroot;
#$export_ok = "git-daemon-export-ok";
# stylesheet to use
-push @stylesheets, "static/gitweb.css";
+#push @stylesheets, "static/gitweb.css";
# javascript code for gitweb
$javascript = "static/gitweb.js";
# logo to use
$logo = "static/git-logo.png";
# the 'favicon'
$favicon = "static/git-favicon.png";
# git-diff-tree(1) options to use for generated patches
#@diff_opts = ("-M");
@diff_opts = ();
# the base url
@git_base_url_list = ( 'git clone ssh://gitolite@git.fripost.org'
, 'git clone https://git.fripost.org'
)
diff --git a/roles/git/files/lib/systemd/system/gitweb.service b/roles/git/files/lib/systemd/system/gitweb.service
index 05821ce..3ba1cc8 100644
--- a/roles/git/files/lib/systemd/system/gitweb.service
+++ b/roles/git/files/lib/systemd/system/gitweb.service
@@ -1,14 +1,15 @@
[Unit]
Description=Gitweb Service
After=network.target
Requires=gitweb.socket
[Service]
StandardInput=socket
User=gitweb
Group=gitweb
Environment=SCRIPT_FILENAME=/usr/lib/cgi-bin/gitweb-wrapper.fcgi
ExecStart=/usr/lib/cgi-bin/gitweb-wrapper.fcgi
+Restart=on-failure
[Install]
WantedBy=multi-user.target