move session ticket mount to fstab

This commit is contained in:
Daniel Micay 2024-10-14 05:55:21 -04:00
parent cbed8c0b42
commit 9ec62a0b79
2 changed files with 1 additions and 3 deletions

1
fstab
View File

@ -1 +1,2 @@
/dev/mapper/swap none swap discard=once 0 0
tmpfs /etc/nginx/session-ticket-keys tmpfs size=1M,mode=700,noswap,x-systemd.before=nginx-create-session-ticket-keys.service,x-systemd.required-by=nginx-create-session-ticket-keys.service 0 0

View File

@ -4,9 +4,6 @@ set -o errexit -o nounset -o pipefail
umask 077
mkdir -p /etc/nginx/session-ticket-keys
mount -t tmpfs -o size=1M,mode=700,noswap tmpfs /etc/nginx/session-ticket-keys
cd /etc/nginx/session-ticket-keys
for i in {1..4}; do