mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-09 17:15:57 +02:00
Update and rename 00-nginx_correct.sh to 00-refresh_files.sh
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
#!/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" /defaults/nginx/site-confs/default.conf.sample
|
|
||||||
# Delete end of file
|
|
||||||
sed -i '1h;1!H;$!d;g;s/\(.*\)}/\1/' /defaults/nginx/site-confs/default.conf.sample
|
|
||||||
|
|
||||||
# Append lines
|
|
||||||
cat /defaults/nginx_addition >> /defaults/nginx/site-confs/default.conf.sample
|
|
||||||
12
nextcloud/rootfs/etc/cont-init.d/00-refresh_files.sh
Executable file
12
nextcloud/rootfs/etc/cont-init.d/00-refresh_files.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/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
|
||||||
|
|
||||||
|
# rm /data/config/crontabs
|
||||||
|
if [ -d /data/config/crontabs ]; then
|
||||||
|
rm -r /data/config/crontabs
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user