]> code.citadel.org Git - citadel.git/blobdiff - citadel/setup.c
* just modify /etc/services in batch mode if we are told so by the environment variab...
[citadel.git] / citadel / setup.c
index 304d111bbe19fc81918a9fd8202ef806f8b444ab..ac283be36d15dcd703cd8dd71af363a55cef34f6 100644 (file)
@@ -1237,7 +1237,9 @@ NEW_INST:
        unlink("citadel.log");
        unlink("weekly");
 
-       check_services_entry(); /* Check /etc/services */
+       if (((setup_type == UI_SILENT) && (getenv("ALTER_ETC_SERVICES")!=NULL)) || 
+           (setup_type != UI_SILENT))
+               check_services_entry(); /* Check /etc/services */
 #ifndef __CYGWIN__
        delete_inittab_entry(); /* Remove obsolete /etc/inittab entry */
        check_xinetd_entry();   /* Check /etc/xinetd.d/telnet */