We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4356cd1 commit 2b7bb26Copy full SHA for 2b7bb26
pyinfra_borgbackup/__init__.py
@@ -117,8 +117,8 @@ def deploy_borgbackup(
117
src=importlib.resources.files(__package__).joinpath("borgbackup.timer.j2"),
118
dest="/etc/systemd/system/borgbackup.timer",
119
mode="644",
120
- minute=str(random.randint(0, 59)),
121
- hour=str(random.randint(0, 4)),
+ minute=f"{random.randint(0, 59):02d}",
+ hour=f"{random.randint(0, 4):02d}",
122
)
123
systemd.service(
124
name="Setup borgbackup timer",
0 commit comments