blob: 7c9dd3fba38aed91fcba82c20a41dbd4c3629af6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
USE_NYTPROF="$1"
if [[ -z $USE_NYTPROF ]]; then
USE_NYTPROF=1
fi
perl -e 'warn "Devel::NYTProf is ", $ARGV[0] ? "enabled" : "disabled", "\n";' "$USE_NYTPROF"
sudo env USE_NYTPROF="$USE_NYTPROF" perl -i -pe 's/^\s*(PerlSetEnv\s+USE_NYTPROF\b).*$/$1 $ENV{USE_NYTPROF}/gmi' \
/etc/httpd/conf.d/bugzilla.conf
sudo service httpd restart
|