Created
April 2, 2020 16:08
-
-
Save taulanthalili/fe02885c1dc6da6dcc52045690d53e1e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
#//////////////////////////////////////////////////////////// | |
#=========================================================== | |
#Update Letsencrypt package on Debian Stretch | |
#Fix Error: The request message was malformed :: Method not allowed | |
#apt update && apt-get install certbot python-certbot-nginx | |
#apt install --only-upgrade python3-acme | |
# Set environment | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
#LANG=en_us_utf8 | |
# You need to be running as root | |
if [ $(id -u) != "0" ]; then | |
echo "This Script needs to be run with root priviliges" | |
echo "Exiting installer" | |
exit 1; | |
fi | |
#Confirm if the Codebase is Stretch | |
if [ $(lsb_release -c | cut -d':' -f2 | tr -d '\n') != "stretch" ]; then | |
echo "The Debian Codebase is not stretch" | |
echo "Exiting installer" | |
exit 1; | |
fi | |
#------------------------- | |
# Update & Install the packages | |
#------------------------- | |
#echo "Success" | |
# Remove folder | |
apt update && apt-get -y install certbot python-certbot-nginx | |
# Remove crontab | |
apt install --only-upgrade python3-acme |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment