summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2017-07-09 21:16:52 +0200
committerGitHub <noreply@github.com>2017-07-09 21:16:52 +0200
commite9d645cd301c1a994e482d43980589969cbf52f1 (patch)
tree093dee2894e2f1f87c12da0dc8977ae365256626 /configure
parent01527a4652b71fc8af7d047ad6fdb8dfc37636a7 (diff)
parent7cc96c9216c51d8e6aaca3ec7e5d0c3b63a7b8e0 (diff)
Merge pull request #1338 from SaberUK/master+openvz
Warn the user about clock drifting when running on OpenVZ.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 6f65519ab..ca2e2f19b 100755
--- a/configure
+++ b/configure
@@ -221,6 +221,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';