X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=configure;h=2f92d9f168a57df7f1f1a68da833f2e09bc26f58;hb=3fc88ba7c97a5db3bfbb0c422afd4e180271b348;hp=1ff8da63b0b62eb9b2c15bd09502fa8f092644f4;hpb=39d34b604259b17e2517fcddb5ee15198d7cb412;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/configure b/configure index 1ff8da63b..2f92d9f16 100755 --- a/configure +++ b/configure @@ -116,7 +116,7 @@ if (defined $opt_base_dir) { } if (defined $opt_system) { - $config{UID} = $opt_uid || 'ircd'; + $config{UID} = defined $opt_uid ? $opt_uid : 'ircd'; $config{CONFIG_DIR} = '/etc/inspircd'; $config{MODULE_DIR} = '/usr/lib/inspircd'; $config{BINARY_DIR} = '/usr/sbin/'; @@ -124,7 +124,7 @@ if (defined $opt_system) { $config{DATA_DIR} = '/var/inspircd'; $config{LOG_DIR} = '/var/log/inspircd'; } else { - $config{UID} = $opt_uid || $<; + $config{UID} = defined $opt_uid ? $opt_uid : $<; $config{CONFIG_DIR} = rel2abs($config{BASE_DIR}."/conf"); $config{MODULE_DIR} = rel2abs($config{BASE_DIR}."/modules"); $config{BINARY_DIR} = rel2abs($config{BASE_DIR}."/bin"); @@ -281,6 +281,21 @@ STOP print "\e[0m\n\n"; print "The following compiler has been detected: \e[1;32m$cxx{NAME} $cxx{VERSION}\e[0m ($config{CXX})\n\n"; + # Check that the user actually wants this version. + if (index($version, '+') != -1) { + print <<"EOW" ; +\e[1;31mWARNING!\e[0m You are building a development version. This contains code which has +not been tested as heavily and may contain various faults which could seriously +affect the running of your server. It is recommended that you use a stable +version instead. + +You can obtain the latest stable version from https://github.com/inspircd/inspircd/releases +or by running `git checkout insp20` if you are installing from Git. + +EOW + exit 1 unless prompt_bool(1, 'I understand this warning and want to continue anyway.', 0); + } + # Directory Settings.. my $tmpbase = $config{BASE_DIR}; $config{BASE_DIR} = prompt_dir(1, 'What directory do you wish to install the InspIRCd base?', $config{BASE_DIR});