Fix SC2046
Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
parent
eb39ad2f39
commit
93f2f91f96
16
setup.sh
16
setup.sh
@ -57,18 +57,18 @@ sudo systemctl daemon-reload
|
||||
# Setup nginx-create-session-ticket-keys
|
||||
unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/nginx-create-session-ticket-keys | sudo tee /usr/local/bin/nginx-create-session-ticket-keys
|
||||
## Explicitly using /var/usrlocal/bin here because SELinux does not follow symlinks
|
||||
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 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)"
|
||||
|
||||
# Setup nginx-rotate-session-ticket-keys
|
||||
unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/nginx-rotate-session-ticket-keys | sudo tee /usr/local/bin/nginx-rotate-session-ticket-keys
|
||||
## Explicitly using /var/usrlocal/bin here because SELinux does not follow symlinks
|
||||
sudo semanage fcontext -a -t bin_t $(realpath /usr/local/bin/nginx-rotate-session-ticket-keys)
|
||||
sudo restorecon -Rv $(realpath /usr/local/bin/nginx-rotate-session-ticket-keys)
|
||||
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)
|
||||
sudo semanage fcontext -a -t bin_t "$(realpath /usr/local/bin/nginx-rotate-session-ticket-keys)"
|
||||
sudo restorecon -Rv "$(realpath /usr/local/bin/nginx-rotate-session-ticket-keys)"
|
||||
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 https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/systemd/system/certbot-ocsp-fetcher.service | sudo tee /etc/systemd/system/certbot-ocsp-fetcher.service
|
||||
|
Loading…
x
Reference in New Issue
Block a user