diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 611be71..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,3 +0,0 @@ -# These are supported funding model platforms - -custom: ["https://www.paypal.me/switnet", switnet.net] diff --git a/README.md b/README.md index 5a041c3..d231641 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Login into your clean server, clone git repository and run the installer, ``` git clone https://github.com/switnet-ltd/quick-jibri-installer cd quick-jibri-installer -sudo bash quick_jibri_installer.sh +bash quick-jibri-installer.sh ``` ![QJI - Setup](https://raw.githubusercontent.com/wiki/switnet-ltd/quick-jibri-installer/images/qji-diagram-setup.png) diff --git a/quick_jibri_installer.sh b/quick_jibri_installer.sh index 2c42137..9d862b6 100644 --- a/quick_jibri_installer.sh +++ b/quick_jibri_installer.sh @@ -706,7 +706,11 @@ if [ "$LE_SSL" = "yes" ]; then sed -i "s|/etc/jitsi/meet/$3.key|/etc/letsencrypt/live/$3/privkey.pem|" $4 systemctl restart $1 #Add cron - crontab -l | { cat; echo "@weekly certbot renew --${2} > $LE_RENEW_LOG 2>&1"; } | crontab - + 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 - + else + echo "Crontab seems to be already in place, skipping." + fi crontab -l fi } diff --git a/tools/start-over.sh b/tools/start-over.sh index a9667ee..0cdc991 100644 --- a/tools/start-over.sh +++ b/tools/start-over.sh @@ -133,7 +133,12 @@ if [ ! -z $SYNC_USER ]; then fi if [ -d /home/jibri ]; then deluser --remove-home jibri + rm -r /home/jibri fi groupdel jibri +#Remove crontab +crontab -l | grep -v '@weekly certbot renew --nginx' | crontab - +crontab -l + echo "We are done..."