From 8899bee01d4ebd2f1a087218133ec9520afbd5f1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 11 Jun 2013 10:47:41 -0500 Subject: Fix cron script failure --- src/libtdeldap.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index d060584..37ddea7 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -3031,10 +3031,11 @@ int LDAPManager::writeClientCronFiles(TQString *errstr) { if (file.open(IO_WriteOnly)) { TQTextStream stream( &file ); + stream << "#!/bin/sh" << "\n"; + stream << "\n"; stream << "# This file was automatically generated by TDE\n"; stream << "# All changes will be lost!\n"; stream << "\n"; - stream << "#!/bin/sh" << "\n"; stream << CRON_UPDATE_NSS_COMMAND << "\n"; file.close(); @@ -3062,10 +3063,11 @@ int LDAPManager::writePrimaryRealmCertificateUpdateCronFile(TQString *errstr) { if (file.open(IO_WriteOnly)) { TQTextStream stream( &file ); + stream << "#!/bin/sh" << "\n"; + stream << "\n"; stream << "# This file was automatically generated by TDE\n"; stream << "# All changes will be lost!\n"; stream << "\n"; - stream << "#!/bin/sh" << "\n"; stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_COMMAND << "\n"; stream << CRON_UPDATE_PRIMARY_REALM_CERTIFICATES_OPENLDAP_RELOAD_COMMAND << "\n"; -- cgit v1.2.1