From d67cbf8ac5d93bf8ae12b3f575528621f9fe0cf5 Mon Sep 17 00:00:00 2001 From: James Swineson Date: Sat, 22 Jun 2019 23:06:24 +0800 Subject: [PATCH] add missing files --- .gitignore | 3 +-- .../systemd/system/pve-fake-subscription.service | 7 +++++++ usr/lib/systemd/system/pve-fake-subscription.timer | 13 +++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 usr/lib/systemd/system/pve-fake-subscription.service create mode 100644 usr/lib/systemd/system/pve-fake-subscription.timer diff --git a/.gitignore b/.gitignore index 6cd8431..741819a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ *.deb -!usr/lib/* # Created by https://www.gitignore.io/api/macos,python,windows,visualstudiocode # Edit at https://www.gitignore.io/?templates=macos,python,windows,visualstudiocode @@ -49,7 +48,7 @@ dist/ downloads/ eggs/ .eggs/ -lib/ +#lib/ lib64/ parts/ sdist/ diff --git a/usr/lib/systemd/system/pve-fake-subscription.service b/usr/lib/systemd/system/pve-fake-subscription.service new file mode 100644 index 0000000..f5e0599 --- /dev/null +++ b/usr/lib/systemd/system/pve-fake-subscription.service @@ -0,0 +1,7 @@ +[Unit] +Description=Fake a Proxmox VE subscription + +[Service] +Type=oneshot +ExecStart=/usr/local/bin/pve-fake-subscription + diff --git a/usr/lib/systemd/system/pve-fake-subscription.timer b/usr/lib/systemd/system/pve-fake-subscription.timer new file mode 100644 index 0000000..93a7843 --- /dev/null +++ b/usr/lib/systemd/system/pve-fake-subscription.timer @@ -0,0 +1,13 @@ +[Unit] +Description=Refresh fake Proxmox VE subscription cache every day + +[Timer] +OnActiveSec=0s +OnBootSec=0s +OnCalendar=daily +RandomizedDelaySec=60s +Persistent=true + +[Install] +WantedBy=timers.target +