[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-31 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

Terry Fage  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #9 from Terry Fage  ---
\smecontribs

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-31 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

Terry Fage  changed:

   What|Removed |Added

 CC||tf...@yahoo.com.au

--- Comment #8 from Terry Fage  ---
Released

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-31 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

John Crisp  changed:

   What|Removed |Added

 Status|IN_PROGRESS |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from John Crisp  ---
yum --enablerepo=smetest install smeserver-letsencrypt

---> Package smeserver-letsencrypt.noarch 0:0.5-8 will be an update


cat /etc/cron.daily/letsencrypt

#!/bin/sh

/usr/bin/dehydrated -c 2>&1 | logger -t dehydrated


Test:

/etc/cron.daily/letsencrypt

Dec 31 15:21:29 home dehydrated: # INFO: Using main config file
/etc/dehydrated/config
Dec 31 15:21:34 home dehydrated: Processing reetspetit.net with alternative
names: home.reetspetit.net mail.reetspetit.net smtp.reetspetit.net
www.reetspetit.net 
Dec 31 15:21:34 home dehydrated:  + Checking domain name(s) of existing cert...
unchanged.
Dec 31 15:21:34 home dehydrated:  + Checking expire date of existing cert...
Dec 31 15:21:34 home dehydrated:  + Valid till Feb  8 01:39:24 2019 GMT (Longer
than 30 days). Skipping renew!


Seems to work now.

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

--- Comment #6 from John Crisp  ---
https://buildsys.koozali.org/plague/job.psp?uid=2003

2003 (smeserver-letsencrypt): Build on target smeserver-9-contribs succeeded.

Should be in smetest soon.

Can someone please verify this so it can be released.

Old string was:

/usr/bin/dehydrated -c 2>&1 >  | logger -t dehydrated

New string is:

/usr/bin/dehydrated -c 2>&1 > logger -t dehydrated

Progress should be observed in the logs.

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

John Crisp  changed:

   What|Removed |Added

  Flags||help_verify+

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

John Crisp  changed:

   What|Removed |Added

 Status|CONFIRMED   |IN_PROGRESS

--- Comment #5 from John Crisp  ---
OK, I goofed a few times. Hard on a mobile phone

Should be:

/usr/bin/dehydrated -c 2>&1 | logger -t dehydrated


%changelog
* Mon Dec 31 2018 John Crisp  0.5-8.sme
- Reverse my previous error [SME:10681]

* Mon Dec 31 2018 John Crisp  0.5-7.sme
- fix spec file numbering

* Mon Dec 31 2018 John Crisp  0.5-6.sme
- Fix typo error in cron.daily [SME: 10681]

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

--- Comment #4 from John Crisp  ---
This was originally
 https://bugs.koozali.org/show_bug.cgi?id=10412 

Somehow a > slipped in there. Should be

/usr/bin/dehydrated -c 2>&1 | logger -t dehydrated

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

John Crisp  changed:

   What|Removed |Added

 CC||contr...@pythontech.co.uk

--- Comment #3 from John Crisp  ---
*** Bug 10682 has been marked as a duplicate of this bug. ***

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

--- Comment #2 from John Crisp  ---
Thanks for reporting.

I must have got it wrong somewhere.

I'll look ASAP.

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
https://bugs.contribs.org/show_bug.cgi?id=10681

--- Comment #1 from Jonathan  ---
I think either the the pipe (|) or the redirect (>) needs to be removed.

-- 
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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

[contribteam] [Bug 10681] syntax error near unexpected token `|' in /etc/cron.daily/letsencypt

2018-12-30 Thread bugzilla-daemon
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: jcr...@safeandsoundit.co.uk
  Reporter: smeserver-bugzi...@snetram.nl
QA Contact: contribteam@lists.contribs.org
  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 contribteam-unsubscr...@lists.contribs.org
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/