Fix restorecon not being on new line
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
37d8caf409
commit
d1a5f7766d
2
setup.sh
2
setup.sh
@ -85,7 +85,7 @@ fi
|
|||||||
sudo semanage fcontext -a -t bin_t "$(realpath /usr/local/bin/nginx-create-session-ticket-keys)"
|
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 restorecon "$(realpath /usr/local/bin/nginx-create-session-ticket-keys)"
|
||||||
sudo chmod u+x "$(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
|
# 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
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user