fix fedora server documentation
This commit is contained in:
@@ -138,8 +138,12 @@ and use the contents as the token when restoring the backup as data is encrypted
|
|||||||
|
|
||||||
## Expanding Root Partition
|
## Expanding Root Partition
|
||||||
|
|
||||||
lvextend -l +100%FREE fedora
|
```bash
|
||||||
xfs_growfs /dev/mapper/fedora-root
|
dnf install cloud-utils-growpart
|
||||||
|
growpart /dev/sda 3
|
||||||
|
lvextend -l +100%FREE fedora
|
||||||
|
xfs_growfs /dev/mapper/fedora-root
|
||||||
|
```
|
||||||
|
|
||||||
## Optional Steps
|
## Optional Steps
|
||||||
|
|
||||||
@@ -239,20 +243,15 @@ Now install certbot and acquire a cert using those credentials:
|
|||||||
```bash
|
```bash
|
||||||
sudo dnf install certbot python3-certbot-dns-route53
|
sudo dnf install certbot python3-certbot-dns-route53
|
||||||
sudo certbot certonly --dns-route53 -d containers.reeselink.com
|
sudo certbot certonly --dns-route53 -d containers.reeselink.com
|
||||||
sudo certbot certonly --dns-route53 -d containers.reeseapps.com
|
|
||||||
|
|
||||||
sudo cp /etc/letsencrypt/live/containers.reeselink.com/fullchain.pem /etc/cockpit/ws-certs.d/50-letsencrypt.cert
|
sudo cp /etc/letsencrypt/live/containers.reeselink.com/fullchain.pem /etc/cockpit/ws-certs.d/50-letsencrypt.cert
|
||||||
sudo cp /etc/letsencrypt/live/containers.reeselink.com/privkey.pem /etc/cockpit/ws-certs.d/50-letsencrypt.key
|
sudo cp /etc/letsencrypt/live/containers.reeselink.com/privkey.pem /etc/cockpit/ws-certs.d/50-letsencrypt.key
|
||||||
|
|
||||||
sudo cp /etc/letsencrypt/live/containers.reeseapps.com/fullchain.pem /etc/cockpit/ws-certs.d/60-letsencrypt.cert
|
|
||||||
sudo cp /etc/letsencrypt/live/containers.reeseapps.com/privkey.pem /etc/cockpit/ws-certs.d/60-letsencrypt.key
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Test the renewal process with:
|
Test the renewal process with:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
sudo certbot renew --cert-name containers.reeselink.com --dry-run
|
sudo certbot renew --cert-name containers.reeselink.com --dry-run
|
||||||
sudo certbot renew --cert-name containers.reeseapps.com --dry-run
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Create a renewal script in /usr/lib/scripts/certbot-renew.sh
|
Create a renewal script in /usr/lib/scripts/certbot-renew.sh
|
||||||
@@ -265,10 +264,6 @@ Create a renewal script in /usr/lib/scripts/certbot-renew.sh
|
|||||||
/usr/bin/certbot renew --cert-name containers.reeselink.com
|
/usr/bin/certbot renew --cert-name containers.reeselink.com
|
||||||
/usr/bin/cp -f /etc/letsencrypt/live/containers.reeselink.com/fullchain.pem /etc/cockpit/ws-certs.d/50-letsencrypt.cert
|
/usr/bin/cp -f /etc/letsencrypt/live/containers.reeselink.com/fullchain.pem /etc/cockpit/ws-certs.d/50-letsencrypt.cert
|
||||||
/usr/bin/cp -f /etc/letsencrypt/live/containers.reeselink.com/privkey.pem /etc/cockpit/ws-certs.d/50-letsencrypt.key
|
/usr/bin/cp -f /etc/letsencrypt/live/containers.reeselink.com/privkey.pem /etc/cockpit/ws-certs.d/50-letsencrypt.key
|
||||||
|
|
||||||
/usr/bin/certbot renew --cert-name containers.reeseapps.com
|
|
||||||
/usr/bin/cp -f /etc/letsencrypt/live/containers.reeseapps.com/fullchain.pem /etc/cockpit/ws-certs.d/60-letsencrypt.cert
|
|
||||||
/usr/bin/cp -f /etc/letsencrypt/live/containers.reeseapps.com/privkey.pem /etc/cockpit/ws-certs.d/60-letsencrypt.key
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Now create a systemd oneshot service to run the script
|
Now create a systemd oneshot service to run the script
|
||||||
|
|||||||
Reference in New Issue
Block a user