1
0
mirror of synced 2026-03-28 06:09:58 +01:00
Files
hassio-addons/mediaelch/rootfs/etc/cont-init.d/10-nginx.sh
2023-02-08 23:27:46 +01:00

22 lines
379 B
Bash

#!/bin/sh
set -e # Exit immediately if a command exits with a non-zero status.
set -u # Treat unset variables as an error.
#
# Adjust nginx virtual server configuration.
#
NGINX_DIRS="\
/var/run/nginx \
/var/tmp/nginx \
/var/lib/nginx/logs
"
# Make sure required directories exist.
for DIR in $NGINX_DIRS; do
mkdir -p "$DIR"
done
# vim:ft=sh:ts=4:sw=4:et:sts=4