Fix cron script failure

pull/1/head
Timothy Pearson 11 years ago
parent 53d28ec856
commit 8899bee01d

@ -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";

Loading…
Cancel
Save