mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	certbot: Move path to /usr/local/sbin.
[greg: fixed typo bug]
This commit is contained in:
		@@ -3,4 +3,4 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
 | 
				
			|||||||
USER=root
 | 
					USER=root
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Cron job to renew certbot twice a day.
 | 
					# Cron job to renew certbot twice a day.
 | 
				
			||||||
52 0,12 * * * root /root/certbot-auto renew --webroot --webroot-path=/var/www/certbot/ --quiet
 | 
					52 0,12 * * * root /usr/local/sbin/certbot-auto renew --webroot --webroot-path=/var/www/certbot/ --quiet
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -40,12 +40,12 @@ if [ -n "$show_help" ]; then
 | 
				
			|||||||
    usage
 | 
					    usage
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CERTBOT_PATH="/usr/local/sbin/certbot-auto"
 | 
				
			||||||
# For reference https://certbot.eff.org/all-instructions/#debian-other-nginx
 | 
					# For reference https://certbot.eff.org/all-instructions/#debian-other-nginx
 | 
				
			||||||
# We download to /root as a reasonably safe place with only root having access
 | 
					wget https://dl.eff.org/certbot-auto -O "$CERTBOT_PATH"
 | 
				
			||||||
wget https://dl.eff.org/certbot-auto -O /root/certbot-auto
 | 
					chmod a+x "$CERTBOT_PATH"
 | 
				
			||||||
chmod a+x /root/certbot-auto
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
/root/certbot-auto --standalone certonly -d "$DOMAIN" -m "$EMAIL" --agree-tos --non-interactive
 | 
					"$CERTBOT_PATH" --standalone certonly -d "$DOMAIN" -m "$EMAIL" --agree-tos --non-interactive
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Link the generated cert to the path read by Zulip
 | 
					# Link the generated cert to the path read by Zulip
 | 
				
			||||||
ln -nsf /etc/letsencrypt/live/"$DOMAIN"/privkey.pem /etc/ssl/private/zulip.key
 | 
					ln -nsf /etc/letsencrypt/live/"$DOMAIN"/privkey.pem /etc/ssl/private/zulip.key
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user