install.sh: expand @cfg_name@ in processed scripts
authorKyle J. McKay <[email protected]>
Tue, 21 Jun 2022 08:37:08 +0000 (21 01:37 -0700)
committerKyle J. McKay <[email protected]>
Tue, 21 Jun 2022 08:37:08 +0000 (21 01:37 -0700)
Make the $cfg_name value available in processed scripts that
do not have access to the full set of configuration variables.

install.sh

index 6aae1b0..7073586 100755 (executable)
@@ -776,6 +776,7 @@ perl -I"$PWD" -M$GIROCCO_CONF -MGirocco::Validator -i -p \
        -e 's/\@fetch_stash_refs\@/"$Girocco::Config::fetch_stash_refs"/g;' \
        -e 's/\@suppress_git_ssh_logging\@/"$Girocco::Config::suppress_git_ssh_logging"/g;' \
        -e 's/\@max_file_size512\@/"$Girocco::Config::max_file_size512"/g;' \
+       -e 's/\@cfg_name\@/"$Girocco::Config::name"/g;' \
        -e 'close ARGV if eof;' \
        "$basedir"/jobs/*.sh "$basedir"/jobd/*.sh \
        "$basedir"/taskd/*.sh "$basedir"/gitweb/*.sh \