Allow the script directory to be set in interactive mode.

This commit is contained in:
Peter Powell 2017-09-24 10:35:38 +01:00
parent b8babf2c43
commit 8270aca2ee

2
configure vendored
View File

@ -263,6 +263,7 @@ Currently, InspIRCd is configured with the following paths:
<|BOLD Log:|> $config{LOG_DIR}
<|BOLD Manual:|> $config{MANUAL_DIR}
<|BOLD Module:|> $config{MODULE_DIR}
<|BOLD Script:|> $config{SCRIPT_DIR}
Do you want to change these settings?
EOQ
@ -278,6 +279,7 @@ if (prompt_bool $interactive, $question, 0) {
$config{LOG_DIR} = prompt_dir $interactive, 'In what directory are log files to be stored?', $config{LOG_DIR};
$config{MANUAL_DIR} = prompt_dir $interactive, 'In what directory are manual pages to be placed?', $config{MANUAL_DIR};
$config{MODULE_DIR} = prompt_dir $interactive, 'In what directory are modules to be placed?', $config{MODULE_DIR};
$config{SCRIPT_DIR} = prompt_dir $interactive, 'In what directory are scripts to be placed?', $config{SCRIPT_DIR};
}
# Configure module settings.