Create directories

This commit is contained in:
Bob Mottram 2015-03-07 21:38:14 +00:00
parent f4c305d3a5
commit 5651899867
1 changed files with 3 additions and 0 deletions

View File

@ -326,6 +326,9 @@ tar -czvf /etc/ssl/freedombone-certs.tar.gz /etc/ssl/mycerts/*.crt
To avoid any possibility of the certificates being accidentally overwritten by self-signed ones at a later date you can create backups. To avoid any possibility of the certificates being accidentally overwritten by self-signed ones at a later date you can create backups.
#+BEGIN_SRC bash #+BEGIN_SRC bash
mkdir /etc/ssl/backups
mkdir /etc/ssl/backups/certs
mkdir /etc/ssl/backups/private
cp /etc/ssl/certs/$HOSTNAME* /etc/ssl/backups/certs/ cp /etc/ssl/certs/$HOSTNAME* /etc/ssl/backups/certs/
cp /etc/ssl/private/$HOSTNAME* /etc/ssl/backups/private/ cp /etc/ssl/private/$HOSTNAME* /etc/ssl/backups/private/
chmod -R 400 /etc/ssl/backups/certs/* chmod -R 400 /etc/ssl/backups/certs/*