forked from switnet/quick-jibri-installer
6.4.2.1
- Prevent to duplicate cron job - Make start-over.sh remove the certbot cron job installed
This commit is contained in:
commit
dba7ef8d96
|
@ -706,7 +706,11 @@ if [ "$LE_SSL" = "yes" ]; then
|
||||||
sed -i "s|/etc/jitsi/meet/$3.key|/etc/letsencrypt/live/$3/privkey.pem|" $4
|
sed -i "s|/etc/jitsi/meet/$3.key|/etc/letsencrypt/live/$3/privkey.pem|" $4
|
||||||
systemctl restart $1
|
systemctl restart $1
|
||||||
#Add cron
|
#Add cron
|
||||||
|
if [ $(crontab -l|sed 's|#.*$||g'|grep -c 'weekly certbot renew') = 0 ];then
|
||||||
crontab -l | { cat; echo "@weekly certbot renew --${2} > $LE_RENEW_LOG 2>&1"; } | crontab -
|
crontab -l | { cat; echo "@weekly certbot renew --${2} > $LE_RENEW_LOG 2>&1"; } | crontab -
|
||||||
|
else
|
||||||
|
echo "Crontab seems to be already in place, skipping."
|
||||||
|
fi
|
||||||
crontab -l
|
crontab -l
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,12 @@ if [ ! -z $SYNC_USER ]; then
|
||||||
fi
|
fi
|
||||||
if [ -d /home/jibri ]; then
|
if [ -d /home/jibri ]; then
|
||||||
deluser --remove-home jibri
|
deluser --remove-home jibri
|
||||||
|
rm -r /home/jibri
|
||||||
fi
|
fi
|
||||||
groupdel jibri
|
groupdel jibri
|
||||||
|
|
||||||
|
#Remove crontab
|
||||||
|
crontab -l | grep -v '@weekly certbot renew --nginx' | crontab -
|
||||||
|
crontab -l
|
||||||
|
|
||||||
echo "We are done..."
|
echo "We are done..."
|
||||||
|
|
Loading…
Reference in New Issue