Skip to content

Commit 7a91ff4

Browse files
committed
Add cron for certbot to install guide
1 parent 4d193c4 commit 7a91ff4

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.server/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sudo apt update
2-
sudo apt install -y nodejs npm apache2 snapd
2+
sudo apt install -y nodejs npm apache2 snapd cron
33
sudo snap install --classic certbot
44
sudo ln -s /snap/bin/certbot /usr/bin/certbot
55
cd ~
@@ -8,3 +8,7 @@ sudo a2enmod rewrite
88
cp ./stac-browser-cdse/.server/browser.conf /etc/apache2/sites-available/000-default.conf
99
sudo certbot --apache -d browser.stac.dataspace.copernicus.eu
1010
sudo service apache2 restart
11+
sudo crontab -e
12+
# in ctrontab, add the following lines (without the leading '# '):
13+
# 0 3 * * * /usr/bin/certbot renew --apache -n
14+
# 0 4 * * * /bin/systemctl restart apache2

0 commit comments

Comments
 (0)