From 016299230e2c2ec853511934e4e0e75aacc7fee0 Mon Sep 17 00:00:00 2001 From: V33m <48420633+V33m@users.noreply.github.com> Date: Thu, 10 Sep 2020 23:09:25 +0200 Subject: [PATCH] Update rtletsencrypt Should solve Issue: https://github.com/arakasi72/rtinst/issues/528 --- scripts/rtletsencrypt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/scripts/rtletsencrypt b/scripts/rtletsencrypt index bd1e9e8..b0c9fad 100755 --- a/scripts/rtletsencrypt +++ b/scripts/rtletsencrypt @@ -62,14 +62,10 @@ if [ $(dpkg-query -W -f='${Status}' "certbot" 2>/dev/null | grep -c "ok installe aptitude -q=5 -y remove certbot python*-certbot-nginx >> $logfile 2>&1 fi -# Install Snapd service if not installed -if [ $(dpkg-query -W -f='${Status}' "snapd" 2>/dev/null | grep -c "ok installed") = 0 ]; then - echo "Installing snapd service" - aptitude -q=5 -y install snapd >> $logfile 2>&1 -fi - +# Install Snapd service +aptitude -q=5 -y install snapd >> $logfile 2>&1 # Install the core snap in order to get the latest snapd for Debian -if [ $osname = "Debian" ]; then snap install core >> $logfile 2>&1 && snap refresh core; fi +if [ $osname = "Debian" ]; then snap install core >> $logfile 2>&1; snap refresh core; fi # Installing Certbot if [ $(snap list | grep -c "certbot") = 0 ]; then