mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
specify full path
otherwise the systemd unit will fails when executed from command line and cwd to /etc/dist-git
This commit is contained in:
parent
949b0a8f00
commit
c4ed46aebf
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
# Cleanup unnecessary files
|
# Cleanup unnecessary files
|
||||||
# The default DEPTH is 2 because the directory path is /var/lib/dist-git/git/rpms/<package>
|
# The default DEPTH is 2 because the directory path is /var/lib/dist-git/git/rpms/<package>
|
||||||
|
|
||||||
REPODIR=$(crudini --get dist-git.conf dist-git gitroot_dir)
|
REPODIR=$(crudini --get /etc/dist-git/dist-git.conf dist-git gitroot_dir)
|
||||||
DEPTH=$(crudini --get dist-git.conf dist-git git_gc_depth)
|
DEPTH=$(crudini --get /etc/dist-git/dist-git.conf dist-git git_gc_depth)
|
||||||
|
|
||||||
find "$REPODIR" -mindepth "$DEPTH" -maxdepth "$DEPTH" -type d |
|
find "$REPODIR" -mindepth "$DEPTH" -maxdepth "$DEPTH" -type d |
|
||||||
while read -r DIRECTORY; do
|
while read -r DIRECTORY; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue