waja revised this gist 5 years ago. Go to revision
1 file changed, 1 insertion, 1 deletion
migrate_vhost.sh
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | #!/bin/bash | |
| 2 | - | # wget https://gist.githubusercontent.com/waja/2487288435c68aca54d3328278905040/raw/migrate_vhost.sh -O /tmp/a && sh /tmp/a -O /tmp/a && sh /tmp/a | |
| 2 | + | # wget https://gist.githubusercontent.com/waja/2487288435c68aca54d3328278905040/raw/migrate_vhost.sh -O /tmp/a && sh /tmp/a | |
| 3 | 3 | sed -i -e '/<Directory \/stats\/>/,+2d' /etc/apache2/sites-available/*_settings && \ | |
| 4 | 4 | sed -i -E '/Alias \/(stats|internal|statistik)/d' /etc/apache2/sites-available/*_settings && \ | |
| 5 | 5 | apache2ctl -t && /etc/init.d/apache2 reload | |
waja revised this gist 5 years ago. Go to revision
1 file changed, 1 insertion, 1 deletion
migrate_vhost.sh
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | #!/bin/bash | |
| 2 | - | # wget https://gist.githubusercontent.com/waja/d0995072b54b4ab5cb2b5e9ab9962543/raw/deploy_icinga2_satellite.sh -O /tmp/a && sh /tmp/a -O /tmp/a && sh /tmp/a | |
| 2 | + | # wget https://gist.githubusercontent.com/waja/2487288435c68aca54d3328278905040/raw/migrate_vhost.sh -O /tmp/a && sh /tmp/a -O /tmp/a && sh /tmp/a | |
| 3 | 3 | sed -i -e '/<Directory \/stats\/>/,+2d' /etc/apache2/sites-available/*_settings && \ | |
| 4 | 4 | sed -i -E '/Alias \/(stats|internal|statistik)/d' /etc/apache2/sites-available/*_settings && \ | |
| 5 | 5 | apache2ctl -t && /etc/init.d/apache2 reload | |
waja revised this gist 5 years ago. Go to revision
1 file changed, 1 insertion, 1 deletion
migrate_vhost.sh
| @@ -1,5 +1,5 @@ | |||
| 1 | 1 | #!/bin/bash | |
| 2 | - | # wget # wget https://gist.githubusercontent.com/waja/d0995072b54b4ab5cb2b5e9ab9962543/raw/deploy_icinga2_satellite.sh -O /tmp/a && sh /tmp/a -O /tmp/a && sh /tmp/a | |
| 2 | + | # wget https://gist.githubusercontent.com/waja/d0995072b54b4ab5cb2b5e9ab9962543/raw/deploy_icinga2_satellite.sh -O /tmp/a && sh /tmp/a -O /tmp/a && sh /tmp/a | |
| 3 | 3 | sed -i -e '/<Directory \/stats\/>/,+2d' /etc/apache2/sites-available/*_settings && \ | |
| 4 | 4 | sed -i -E '/Alias \/(stats|internal|statistik)/d' /etc/apache2/sites-available/*_settings && \ | |
| 5 | 5 | apache2ctl -t && /etc/init.d/apache2 reload | |
waja revised this gist 5 years ago. Go to revision
1 file changed, 1 insertion
migrate_vhost.sh
| @@ -1,4 +1,5 @@ | |||
| 1 | 1 | #!/bin/bash | |
| 2 | + | # wget # wget https://gist.githubusercontent.com/waja/d0995072b54b4ab5cb2b5e9ab9962543/raw/deploy_icinga2_satellite.sh -O /tmp/a && sh /tmp/a -O /tmp/a && sh /tmp/a | |
| 2 | 3 | sed -i -e '/<Directory \/stats\/>/,+2d' /etc/apache2/sites-available/*_settings && \ | |
| 3 | 4 | sed -i -E '/Alias \/(stats|internal|statistik)/d' /etc/apache2/sites-available/*_settings && \ | |
| 4 | 5 | apache2ctl -t && /etc/init.d/apache2 reload | |
waja revised this gist 5 years ago. Go to revision
1 file changed, 4 insertions
migrate_vhost.sh(file created)
| @@ -0,0 +1,4 @@ | |||
| 1 | + | #!/bin/bash | |
| 2 | + | sed -i -e '/<Directory \/stats\/>/,+2d' /etc/apache2/sites-available/*_settings && \ | |
| 3 | + | sed -i -E '/Alias \/(stats|internal|statistik)/d' /etc/apache2/sites-available/*_settings && \ | |
| 4 | + | apache2ctl -t && /etc/init.d/apache2 reload | |