diff options
author | Timothy Pearson <[email protected]> | 2013-06-11 10:47:41 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-06-11 10:47:41 -0500 |
commit | 8899bee01d4ebd2f1a087218133ec9520afbd5f1 (patch) | |
tree | bb8ea3cf310253bea0bc5473ee8632c3c2f950f6 | |
parent | 53d28ec856a736383f2c96651bf66421fb571c87 (diff) | |
download | libtdeldap-8899bee01d4ebd2f1a087218133ec9520afbd5f1.tar.gz libtdeldap-8899bee01d4ebd2f1a087218133ec9520afbd5f1.zip |
Fix cron script failure
-rw-r--r-- | src/libtdeldap.cpp | 6 |
1 files 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"; |