diff --git a/podman-privatebin/10_install.sh b/podman-privatebin/10_install.sh index 0346713..fbf46ad 100755 --- a/podman-privatebin/10_install.sh +++ b/podman-privatebin/10_install.sh @@ -13,11 +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|fastcgi_pass unix:/run/php-fpm.sock;|fastcgi_pass unix:/run/s6/php-fpm.sock;|' docker-nginx-fpm-alpine/etc/nginx/http.d/site.conf -#sed -i 's|pid /run/nginx.pid;|pid /run/s6/nginx.pid;|' docker-nginx-fpm-alpine/etc/nginx/nginx.conf -#sed -i 's|listen = /run/php-fpm.sock|listen = /run/s6/php-fpm.sock|' docker-nginx-fpm-alpine/etc/php8/php-fpm.d/zz-docker.conf -#cp conf.php docker-nginx-fpm-alpine/conf.php -#grep -q conf.php docker-nginx-fpm-alpine/Dockerfile || sed -i '/^COPY.*/a COPY conf.php /srv/cfg/conf.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} &&