Ensure the key and cert are owned by spoke

This commit is contained in:
Dan Buch 2020-02-13 11:23:44 -05:00
parent 22760e622b
commit 6d9d020857
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

View File

@ -77,6 +77,7 @@ PGSETUP
mv -v /tmp/spoke.crt /home/spoke/spoke.crt
mv -v /tmp/spoke.key /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
ln -svf /etc/nginx/sites-available/default /etc/nginx/sites-enabled/default
sha1sum /etc/nginx/sites-available/default