Skip to content
Snippets Groups Projects
Verified Commit f95ca711 authored by Leonidas Spyropoulos's avatar Leonidas Spyropoulos
Browse files

aurweb: setup git gc for all aurweb git repos

parent bc01ece8
No related branches found
No related tags found
1 merge request!638aurweb: setup git gc for all aurweb git repos
......@@ -205,6 +205,10 @@
state: link
when: release.changed
- name: Install aurweb-git-gc script
template: src=aurweb-git-gc.sh.j2 dest=/usr/local/bin/aurweb-git-gc.sh owner=root group=root mode=0755
when: release.changed
- name: Generate HTML documentation
make:
chdir: "{{ aurweb_dir }}/doc"
......
#!/bin/bash
find {{ aurweb_dir }} -maxdepth 1 -type d -name "*.git" -execdir sh -c 'cd {} && git gc' \;
......@@ -4,6 +4,6 @@ Description=Git gc AUR
[Service]
Type=oneshot
User={{ aurweb_user }}
WorkingDirectory={{ aurweb_git_dir }}
ExecStart=/usr/bin/git gc
WorkingDirectory={{ aurweb_dir }}
ExecStart=/usr/local/bin/aurweb-git-gc.sh
Nice=5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment