forked from rarias/jungle
Override files in rotating gitea dump service
This commit is contained in:
@@ -55,7 +55,9 @@
|
||||
};
|
||||
|
||||
script = ''
|
||||
${exe} dump --type ${cfg.dump.type} --file "gitea-dump-$(date +%a).${cfg.dump.type}"
|
||||
name="gitea-dump-$(date +%a).${cfg.dump.type}"
|
||||
${exe} dump --type ${cfg.dump.type} --file - >"$name.tmp"
|
||||
mv "$name.tmp" "$name"
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user