Added our standard 'designed to piss off Richard Stallman' license declaration to...
[citadel.git] / citadel / utils / setup.c
index 311f1b28f52fff4b592c96414f0f91a5b018fc61..bf6ea963429b907ca9665d7b955a48d254ddadd8 100644 (file)
@@ -1,5 +1,15 @@
 /*
  * Citadel setup utility
+ *
+ * Copyright (c) 1987-2012 by the citadel.org team
+ *
+ * This program is open source software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 3.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
  */
 
 #define SHOW_ME_VAPPEND_PRINTF
@@ -1131,17 +1141,6 @@ int discover_ui(void)
 
 
 
-void migrate_old_installs(void)
-{
-       int rv;
-       rv = system("exec /bin/rm -fr ./rooms ./chatpipes ./expressmsgs ./sessions 2>/dev/null");
-       if (rv != 0)
-               fprintf(stderr, _("failed to remove old style directories.\n"));
-       unlink("citadel.log");
-       unlink("weekly");
-}
-
-
 /*
  * Strip "db" entries out of /etc/nsswitch.conf
  */
@@ -1611,8 +1610,6 @@ NEW_INST:
 
        write_config_to_disk();
 
-        migrate_old_installs();        /* Delete files and directories used by older Citadel versions */
-
        if (    ((setup_type == UI_SILENT)
                && (getenv("ALTER_ETC_SERVICES")!=NULL))
                || (setup_type != UI_SILENT)