mirror of
https://github.com/GrapheneOS/infrastructure.git
synced 2025-05-13 20:22:34 -04:00
move umask to systemd unit configuration
This commit is contained in:
parent
9ec62a0b79
commit
05d903ae3f
4 changed files with 2 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue