Browse Source

make cron entry easier to read

Craig Stewart 6 months ago
parent
commit
f7084ef58f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      guides/building-a-git-repo/finalising.html

+ 2
- 2
guides/building-a-git-repo/finalising.html View File

@@ -110,8 +110,8 @@ sudo service fail2ban restart</pre>
110 110
 <p>We should now have a working git server. If you set up an Admin user when configuring gitea in the previous steps then we are set. If not you should register a user now, as the first registered user will become admin. The only remaining step before our server is ready is to automate the renewal of our SSL certificate.</p>
111 111
 <pre>sudo crontab -e</pre>
112 112
 <p>This will create an empty crontab for root, and open it in the default editor. As an invalid crontab will stop cron from working properly this command will validate what you save before installing it to cron. You will need to add a line like the below to the end of the file and save it.</p>
113
-<pre>21 05 * * * /usr/bin/certbot renew --manual-auth-hook /root/certbot/auth.sh --manual-cleanup-hook /root/certbot/clean.sh --renew-hook /root/certbot/renew.sh --manual-public-ip-logging-ok --quiet</pre>
114
-<p>This will run the certbot command at 05:21 every day, which will check the expiry of your certificate, and renew it and restart apache if it is about to expire. Feel free to change the time it runs, Lets Encrypt won't want everyone trying to get certificates at the same time.</p>
113
+<p>"21 05 * * * /usr/bin/certbot renew --manual-auth-hook /root/certbot/auth.sh --manual-cleanup-hook /root/certbot/clean.sh --renew-hook /root/certbot/renew.sh --manual-public-ip-logging-ok --quiet"</p>
114
+<p>This will need to be on a single line without the quotes, and will run the certbot command at 05:21 every day, which will check the expiry of your certificate, and renew it and restart apache if it is about to expire. Feel free to change the time it runs, Lets Encrypt won't want everyone trying to get certificates at the same time.</p>
115 115
 <p>Once that is done your Git Server is ready to use.</p>
116 116
 <p style="text-align:center;"><a href="/guides/building-a-git-repo/installgitea.html" title="Installing Gitea">Installing Gitea</a>|<a href="/guides/building-a-git-repo/" title="Building A git Repository Server">Main Page</a>|<a href="/guides/building-a-git-repo/other-considerations.html" title="Other Considerations">Other Considerations</a></p>
117 117
 </div>

Loading…
Cancel
Save