move umask to systemd unit configuration

This commit is contained in:
Daniel Micay 2024-10-14 06:05:49 -04:00
parent 9ec62a0b79
commit 05d903ae3f
4 changed files with 2 additions and 4 deletions

View File

@ -2,8 +2,6 @@
set -o errexit -o nounset -o pipefail set -o errexit -o nounset -o pipefail
umask 077
cd /etc/nginx/session-ticket-keys cd /etc/nginx/session-ticket-keys
for i in {1..4}; do for i in {1..4}; do

View File

@ -2,8 +2,6 @@
set -o errexit -o nounset -o pipefail set -o errexit -o nounset -o pipefail
umask 077
cd /etc/nginx/session-ticket-keys cd /etc/nginx/session-ticket-keys
rsync -I 2.key 1.key rsync -I 2.key 1.key

View File

@ -7,6 +7,7 @@ Type=oneshot
User=root User=root
Group=root Group=root
ExecStart=/usr/local/bin/nginx-create-session-ticket-keys ExecStart=/usr/local/bin/nginx-create-session-ticket-keys
UMask=0077
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View File

@ -7,3 +7,4 @@ Type=oneshot
User=root User=root
Group=root Group=root
ExecStart=/usr/local/bin/nginx-rotate-session-ticket-keys ExecStart=/usr/local/bin/nginx-rotate-session-ticket-keys
UMask=0077