From edba77ba207b80e58b14fb252a1029b0a00ca640 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sun, 22 Dec 2024 22:51:11 -0700 Subject: [PATCH] Fix mountpoint --- .../system/etc-nginx-session\\x2dticket\\x2dkeys.mount" | 5 ++++- setup.sh | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git "a/etc/systemd/system/etc-nginx-session\\x2dticket\\x2dkeys.mount" "b/etc/systemd/system/etc-nginx-session\\x2dticket\\x2dkeys.mount" index a5dfad4..3fe0e7d 100644 --- "a/etc/systemd/system/etc-nginx-session\\x2dticket\\x2dkeys.mount" +++ "b/etc/systemd/system/etc-nginx-session\\x2dticket\\x2dkeys.mount" @@ -6,4 +6,7 @@ What=tmpfs Where=/etc/nginx/session-ticket-keys Type=tmpfs Options=size=1M,noswap,x-systemd.before=nginx-create-session-ticket-keys.service,x-systemd.required-by=nginx-create-session-ticket-keys.service -DirectoryMode=700 \ No newline at end of file +DirectoryMode=700 + +[Install] +WantedBy=local-fs.target \ No newline at end of file diff --git a/setup.sh b/setup.sh index c459e87..aa4b54c 100644 --- a/setup.sh +++ b/setup.sh @@ -102,7 +102,7 @@ sudo chmod u+x "$(realpath /usr/local/bin/nginx-rotate-session-ticket-keys)" sudo sed -i '$i restorecon -Rv /etc/nginx/session-ticket-keys' "$(realpath /usr/local/bin/nginx-rotate-session-ticket-keys)" # Download the units -unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/refs/heads/main/etc/systemd/system/nginx-session-ticket-keys.mount | sudo tee /etc/systemd/system/nginx-session-ticket-keys.mount > /dev/null +unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/refs/heads/main/etc/systemd/system/etc-nginx-session%5Cx2dticket%5Cx2dkeys.mount | sudo tee /etc/systemd/system/etc-nginx-session\\x2dticket\\x2dkeys.mount > /dev/null unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/nginx-create-session-ticket-keys.service | sudo tee /etc/systemd/system/nginx-create-session-ticket-keys.service > /dev/null unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/nginx-rotate-session-ticket-keys.service | sudo tee /etc/systemd/system/nginx-rotate-session-ticket-keys.service > /dev/null unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/nginx-rotate-session-ticket-keys.timer | sudo tee /etc/systemd/system/nginx-rotate-session-ticket-keys.timer > /dev/null @@ -114,7 +114,7 @@ unpriv curl -s https://raw.githubusercontent.com/TommyTran732/NGINX-Configs/main sudo systemctl daemon-reload # Enable the units -sudo systemctl enable --now nginx-session-ticket-keys.mount +sudo systemctl enable --now etc-nginx-session\\x2dticket\\x2dkeys.mount sudo systemctl enable --now nginx-create-session-ticket-keys.service sudo systemctl enable --now nginx-rotate-session-ticket-keys.timer