From d1a5f7766d27b0d5f5c80f56c07634ec80949acc Mon Sep 17 00:00:00 2001 From: Tommy Date: Fri, 30 Aug 2024 10:49:29 -0700 Subject: [PATCH] Fix restorecon not being on new line Signed-off-by: Tommy --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 095f248..87b1dea 100644 --- a/setup.sh +++ b/setup.sh @@ -85,7 +85,7 @@ fi 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)" sudo chmod u+x "$(realpath /usr/local/bin/nginx-create-session-ticket-keys)" -echo 'restorecon -Rv /etc/nginx/session-ticket-keys' | sudo tee -a "$(realpath /usr/local/bin/nginx-create-session-ticket-keys)" +sudo sed -i '$i restorecon -Rv /etc/nginx/session-ticket-keys' "$(realpath /usr/local/bin/nginx-create-session-ticket-keys)" # Set the appropriate SELinux context for session ticket keys rotation unpriv curl -s https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/nginx-rotate-session-ticket-keys | sudo tee /usr/local/bin/nginx-rotate-session-ticket-keys > /dev/null