migrate_vhost.sh
· 362 B · Bash
原始檔案
#!/bin/bash
# wget https://gist.githubusercontent.com/waja/2487288435c68aca54d3328278905040/raw/migrate_vhost.sh -O /tmp/a && sh /tmp/a
sed -i -e '/<Directory \/stats\/>/,+2d' /etc/apache2/sites-available/*_settings && \
sed -i -E '/Alias \/(stats|internal|statistik)/d' /etc/apache2/sites-available/*_settings && \
apache2ctl -t && /etc/init.d/apache2 reload
| 1 | #!/bin/bash |
| 2 | # wget https://gist.githubusercontent.com/waja/2487288435c68aca54d3328278905040/raw/migrate_vhost.sh -O /tmp/a && sh /tmp/a |
| 3 | sed -i -e '/<Directory \/stats\/>/,+2d' /etc/apache2/sites-available/*_settings && \ |
| 4 | sed -i -E '/Alias \/(stats|internal|statistik)/d' /etc/apache2/sites-available/*_settings && \ |
| 5 | apache2ctl -t && /etc/init.d/apache2 reload |
| 6 |