https://bugs.contribs.org/show_bug.cgi?id=10681

            Bug ID: 10681
           Summary: syntax error near unexpected token `|' in
                    /etc/cron.daily/letsencypt
    Classification: Contribs
           Product: SME Contribs
           Version: Futur
          Hardware: ---
                OS: ---
            Status: CONFIRMED
          Severity: normal
          Priority: P3
         Component: smeserver-letsencrypt
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

[root@mail ~]# rpm -q --whatprovides
/etc/e-smith/templates/etc/cron.daily/letsencrypt/
smeserver-letsencrypt-0.5-5.noarch
[root@mail ~]# cat
/etc/e-smith/templates/etc/cron.daily/letsencrypt/10letsencrypt
{
    use strict;
    use warnings;
    use esmith::ConfigDB;

    my $configDB = esmith::ConfigDB->open_ro or die("can't open Config DB");

    my $letsencryptStatus = $configDB->get_prop( 'letsencrypt', 'status' ) ||
'disabled';

    if ( $letsencryptStatus eq 'enabled' ) {

        $OUT .= "#!/bin/sh\n\n";
        $OUT .= "/usr/bin/dehydrated -c 2>&1 >  | logger -t dehydrated";
    }

    else {
        $OUT .= "# letsencrypt is disabled\n";
    }
}

[root@mail ~]# rpm -q --whatprovides
/etc/e-smith/templates/etc/cron.daily/letsencrypt/
smeserver-letsencrypt-0.5-5.noarch
[root@mail ~]# /etc/cron.daily/letsencrypt
/etc/cron.daily/letsencrypt: line 3: syntax error near unexpected token `|'
/etc/cron.daily/letsencrypt: line 3: `/usr/bin/dehydrated -c 2>&1 >  | logger
-t dehydrated'
[root@mail ~]#

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to