warc2zim/test-website/entrypoint-reverse.sh

9 lines
663 B
Bash
Raw Normal View History

2024-04-04 15:52:31 +00:00
#!/bin/bash
# Reverse the modifications done by entrypoint.sh ; usefull for local development when local directory is mounted inside the container
# for rapid tests but the modifications have to be reversed so that proper stuff is commited in Github
2024-04-05 08:44:56 +00:00
find /var/www/html -type f -exec sed -i 's/http:\/\/jédéacçents.local.oviles.info:8888/https:\/\/not_standard_netloc_not_encoded/g' {} \;
find /var/www/html -type f -exec sed -i 's/http:\/\/xn--jdacents-v0aqb.local.oviles.info:8888/https:\/\/not_standard_netloc_punny_encoded/g' {} \;
find /var/www/html -type f -exec sed -i 's/http:\/\/test-website.local.oviles.info:8888/https:\/\/standard_netloc/g' {} \;