Fixes for archlinux

This commit is contained in:
absurdo 2023-05-21 19:40:15 +02:00
parent 1700734c2a
commit 04ddeb761e
6 changed files with 55 additions and 11 deletions

View file

@ -18,7 +18,7 @@ if [[ $DISTRO =~ ^Debian ]] || [[ $DISTRO =~ ^Ubuntu ]]; then
elif [[ $DISTRO =~ ^NAME=\"Arch ]]; then
pacman -Syu sudo
pacman -Syu --noconfirm sudo
sudo pacman -S --noconfirm python python-pip sudo augeas python-virtualenv
@ -99,7 +99,7 @@ sudo /opt/certbot/bin/pip install certbot certbot
echo "0 0,12 * * * root /opt/certbot/bin/python -c 'import random; import time; time.sleep(random.random() * 3600)' && sudo certbot renew -q" | sudo tee -a /etc/crontab > /dev/null
sudo ln -s /opt/certbot/bin/certbot /usr/bin/certbot
sudo ln -sf /opt/certbot/bin/certbot /usr/bin/certbot
if [ $? -eq 0 ]; then