privatebin Fix sed header X-XSS-Protection

This commit is contained in:
Gitouche 2022-05-12 22:25:01 +02:00
parent 30bf96e1cf
commit 89b6d2e871

View file

@ -13,7 +13,7 @@ if ! podman volume exists ${srvdata_volume} ; then
fi
git clone -b ${version} --depth=1 https://github.com/PrivateBin/docker-nginx-fpm-alpine &&
sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-Xss-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" docker-nginx-fpm-alpine/Dockerfile
sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" docker-nginx-fpm-alpine/Dockerfile
podman build -t privatebin-nginx-fpm-alpine docker-nginx-fpm-alpine &&
rm -rf docker-nginx-fpm-alpine &&
podman volume create ${run_volume} &&