mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-28 15:37:39 +01:00
Create 00-nginx_correct.sh
This commit is contained in:
14
nextcloud/rootfs/etc/cont-init.d/00-nginx_correct.sh
Normal file
14
nextcloud/rootfs/etc/cont-init.d/00-nginx_correct.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# shellcheck shell=bash
|
||||
|
||||
# Clean nginx files at each reboot
|
||||
if [ -d /data/config/nginx ]; then
|
||||
rm -r /data/config/nginx
|
||||
fi
|
||||
|
||||
# Prepare file
|
||||
sed -i "/Strict-Transport-Security/d" /nginx/site-confs/default.conf.sample
|
||||
sed -i '$d' /nginx/site-confs/default.conf.sample
|
||||
|
||||
# Append lines
|
||||
cat /defaults/nginx_addition >> /nginx/site-confs/default.conf.sample
|
||||
Reference in New Issue
Block a user