mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
fixed addDomain.sh, auto correct folder permissions, included localhost
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
perl -0777 -p -i.bak -e "s/(vhTemplate centralConfigLog \{[^}]+)\}*(^$)/\1
|
||||
member $1 {
|
||||
vhDomain $1
|
||||
}/gmi" httpd_config.conf
|
||||
|
||||
perl -0777 -p -i -e 's/(vhTemplate centralConfigLog \{[^}]+)\}*(^.*listeners.*$)/\1$2
|
||||
member '$1' {
|
||||
vhDomain '$1'
|
||||
}/gmi' httpd_config.conf
|
||||
|
||||
#perl -0777 -p -i.bak -e "s/(vhTemplate centralConfigLog \{[^}]+)\}*(^$)/\1
|
||||
# member $1 {
|
||||
# vhDomain $1
|
||||
# }/gmi" httpd_config.conf
|
||||
|
||||
Reference in New Issue
Block a user