Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
outdoorbits committed Oct 11, 2024
1 parent 68b16e5 commit 7e9ca06
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions install-little-backup-box.sh
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,14 @@ sudo systemctl daemon-reload
sudo openssl req -x509 -nodes -days 3650 -subj '/C=OW/ST=MilkyWay/L=Earth/O=little-backup-box/CN=10.42.0.1' -newkey rsa:2048 -keyout /etc/ssl/private/little-backup-box.key -out /etc/ssl/certs/little-backup-box.crt
sudo cat /etc/ssl/private/little-backup-box.key | sudo tee /etc/ssl/private/little-backup-box.pem
sudo cat /etc/ssl/certs/little-backup-box.crt | sudo tee -a /etc/ssl/private/little-backup-box.pem
sudo chmod 600 /etc/ssl/private/little-backup-box.key
sudo chmod 600 /etc/ssl/private/little-backup-box.pem
sudo chmod 600 /etc/ssl/certs/little-backup-box.crt

sudo chown root:ssl-cert /etc/ssl/private/little-backup-box.key
sudo chmod 640 /etc/ssl/private/little-backup-box.key

sudo chown root:ssl-cert /etc/ssl/private/little-backup-box.pem
sudo chmod 640 /etc/ssl/private/little-backup-box.pem

sudo chmod 644 /etc/ssl/certs/little-backup-box.crt

# Apache-config-files
if [ "${SCRIPT_MODE}" = "install" ]; then
Expand Down

0 comments on commit 7e9ca06

Please sign in to comment.