From c27d4499befb0af69f6336df2fd33eec01c7e27a Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 22 Dec 2024 21:53:26 -0700 Subject: [PATCH] Add missing mkdir Signed-off-by: Tommy --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.sh b/setup.sh index 0d644be..6100021 100644 --- a/setup.sh +++ b/setup.sh @@ -81,11 +81,15 @@ sudo chmod 644 /etc/systemd/system/nginx.service.d/override.conf sudo systemctl daemon-reload # Setup nginx-create-session-ticket-keys + +mkdir -p /etc/nginx/session-ticket-keys + if grep -q rhel /etc/os-release; then unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main/scripts/nginx-create-session-ticket-keys-ramfs | sudo tee /usr/local/bin/nginx-create-session-ticket-keys > /dev/null else unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/nginx-create-session-ticket-keys | sudo tee /usr/local/bin/nginx-create-session-ticket-keys > /dev/null fi + ## Set the appropriate SELinux context for session ticket keys creation sudo semanage fcontext -a -t bin_t "$(realpath /usr/local/bin/nginx-create-session-ticket-keys)" sudo restorecon "$(realpath /usr/local/bin/nginx-create-session-ticket-keys)"