summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-05-16 11:18:10 +0100
committerPeter Powell <petpow@saberuk.com>2017-05-20 15:13:18 +0100
commit7cc96c9216c51d8e6aaca3ec7e5d0c3b63a7b8e0 (patch)
tree4659bba43f361155eab6f76f4a11824b03160028
parent127683c29e6eb33c21f85cf1ccba6fb85fc0cdec (diff)
Warn the user about clock drifting when running on OpenVZ.
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index d2da2a9ef..51100a4f7 100755
--- a/configure
+++ b/configure
@@ -240,6 +240,15 @@ $config{UID} = $user[2];
# Clear the screen.
system 'tput', 'clear' if $interactive;
+# Warn the user about clock drifting when running on OpenVZ.
+if (-e '/proc/user_beancounters' || -e '/proc/vz/vzaquota') {
+ print_warning <<'EOW';
+You are building InspIRCd inside of an an OpenVZ container. If you
+plan to use InspIRCd in this container then you should make sure that NTP is
+configured on the Hardware Node. Failure to do so may result in clock drifting!
+EOW
+}
+
# Check that the user actually wants this version.
if ($version{LABEL} ne 'release') {
print_warning <<'EOW';