Can't save requested string in incrontab

Discussion in 'Installation/Configuration' started by fbarcenas, Jun 1, 2020.

  1. fbarcenas

    fbarcenas Member

    I'm trying to follow the guide:
    https://www.howtoforge.com/tutorial/securing-ispconfig-3-with-a-free-lets-encrypt-ssl-certificate/
    It calls for saving this string in incrontab:
    /etc/letsencrypt/archive/$(hostname -f)/ IN_MODIFY ./etc/init.d/le_ispc_pem.sh
    but everytime I try and go back and look it; it gets modified to:
    /etc/letsencrypt/archive/$(hostname IN_ALL_EVENTS IN_MODIFY ./etc/init.d/le_ispc_pem.sh

    It doesn't seem to matter what editor I used. I tried VI, Joe's own, Nano. Nothing saves it as it's supposed to.
     
  2. Th0m

    Th0m ISPConfig Developer ISPConfig Developer

    I had the same issue. I changed it to the hostname, so instead of
    Code:
    /etc/letsencrypt/archive/$(hostname -f)/
    I entered
    Code:
    /etc/letsencrypt/archive/mail.example.com/
    The hostname would be the main domain of the certificate.
     
    Jesse Norell likes this.
  3. Th0m

    Th0m ISPConfig Developer ISPConfig Developer

    I have it running for 2 several certificates: one for the mailserver (with the hostnames mail.example.com, imap.example.com, smtp.example.com, pop.example.com) and one for the control panel (servername.example.com)
     
  4. ahrasis

    ahrasis Well-Known Member

    Fistly, that tutorial of mine is quite old actually, started from a thread in this forum and lastly converted as it is, never been modified though I made some minor fixes elsewhere like in le4ispc script and ISPConfig installer related files later on.

    It is originally meant to be inserted via script, thus, yes you need to change $(hostname -f) in that incrontab to your server FQDN instead, so do use your knowledge and experience in linux in following the tutorials.

    If you refer to its thread and the le4ispc script mentioned at the end of that tutorial (which is newer than that tutorial but still older than what is going to be implemented in ISPConfig installer related files), you'll find part of it was also changed to IN_CREATE,IN_MODIFY.

    However, the latest development which I mentioned in here and here, which I can only hope you all read and relate, in the near future we will no longer be using incrontab or the old le4ispc scripts.

    For your easy reading, I quoted my post in one of them:
     
    Th0m likes this.

Share This Page