all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Christoph Heiss <c.heiss@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH installer 1/3] checktime: drop unused script
Date: Mon, 13 Jul 2026 15:03:15 +0200	[thread overview]
Message-ID: <20260713130320.1197625-2-c.heiss@proxmox.com> (raw)
In-Reply-To: <20260713130320.1197625-1-c.heiss@proxmox.com>

This has been unused since

  5490bc6 ("remove call to /usr/bin/checktime")

which removed the last callsite of this script in 2012.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 Makefile       |  2 --
 checktime      | 26 --------------------------
 debian/install |  1 -
 3 files changed, 29 deletions(-)
 delete mode 100755 checktime

diff --git a/Makefile b/Makefile
index bb5dc86..acf99d5 100644
--- a/Makefile
+++ b/Makefile
@@ -52,7 +52,6 @@ $(BUILDDIR):
 	  Proxmox/ \
 	  Xdefaults \
 	  banner/ \
-	  checktime \
 	  country.pl \
 	  html/ \
 	  interfaces \
@@ -134,7 +133,6 @@ install: $(INSTALLER_SOURCES) $(COMPILED_BINS)
 	install -D -m 755 proxinstall $(DESTDIR)/usr/bin/proxinstall
 	install -D -m 755 proxmox-low-level-installer $(DESTDIR)/$(BINDIR)/proxmox-low-level-installer
 	$(foreach i,$(USR_BIN), install -m755 $(CARGO_COMPILEDIR)/$(i) $(DESTDIR)$(BINDIR)/ ;)
-	install -D -m 755 checktime $(DESTDIR)/usr/bin/checktime
 	install -D -m 644 xinitrc $(DESTDIR)/.xinitrc
 	install -D -m 755 spice-vdagent.sh $(DESTDIR)/.spice-vdagent.sh
 	install -D -m 644 Xdefaults $(DESTDIR)/.Xdefaults
diff --git a/checktime b/checktime
deleted file mode 100755
index 723edd6..0000000
--- a/checktime
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/perl -w
-
-use strict;
-use warnings;
-
-use File::stat;
-use POSIX qw(strftime);
-
-sub testtime {
-    my $st = stat("/usr/bin/checktime") || stat("./checktime");
-
-    my $ctime = time();
-
-    if ($ctime < $st->atime) {
-	my $system_time_str = strftime "%F %T", localtime $ctime;
-	my $pkg_time_str = strftime "%F %T", localtime $st->atime;
-	warn "detected wrong system time $system_time_str, older than installer ($pkg_time_str)\n";
-	my $tstr = localtime $st->atime;
-	# correct system time to avoid errors, i.e gpg fails
-	system ("date -s '$tstr'"); 
-    }
-}
-
-testtime();
-
-exit (0);
diff --git a/debian/install b/debian/install
index 132220a..291347f 100644
--- a/debian/install
+++ b/debian/install
@@ -8,7 +8,6 @@ banner/pve-banner.png /var/lib/proxmox-installer
 etc
 html /var/lib/proxmox-installer/
 usr/sbin
-usr/bin/checktime
 usr/bin/proxinstall
 usr/bin/proxmox-auto-installer
 usr/bin/proxmox-chroot
-- 
2.54.0





  reply	other threads:[~2026-07-13 13:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-13 13:03 [PATCH installer 0/3] clean up old, unused files Christoph Heiss
2026-07-13 13:03 ` Christoph Heiss [this message]
2026-07-13 13:03 ` [PATCH installer 2/3] install: drop unused pve-manager/country debconf setting Christoph Heiss
2026-07-13 13:03 ` [PATCH installer 3/3] interfaces: drop unused file Christoph Heiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260713130320.1197625-2-c.heiss@proxmox.com \
    --to=c.heiss@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal