Ensure the key and cert are owned by spoke
This commit is contained in:
parent
22760e622b
commit
6d9d020857
@ -77,6 +77,7 @@ PGSETUP
|
|||||||
mv -v /tmp/spoke.crt /home/spoke/spoke.crt
|
mv -v /tmp/spoke.crt /home/spoke/spoke.crt
|
||||||
mv -v /tmp/spoke.key /home/spoke/spoke.key
|
mv -v /tmp/spoke.key /home/spoke/spoke.key
|
||||||
chmod 0600 /home/spoke/spoke.crt /home/spoke/spoke.key
|
chmod 0600 /home/spoke/spoke.crt /home/spoke/spoke.key
|
||||||
|
chown spoke /home/spoke/spoke.crt /home/spoke/spoke.key
|
||||||
cp -v /tmp/nginx-sites-default.conf /etc/nginx/sites-available/default
|
cp -v /tmp/nginx-sites-default.conf /etc/nginx/sites-available/default
|
||||||
ln -svf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
ln -svf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
|
||||||
sha1sum /etc/nginx/sites-available/default
|
sha1sum /etc/nginx/sites-available/default
|
||||||
|
Loading…
Reference in New Issue
Block a user