Procházet zdrojové kódy

Make /etc/corosync/corosync.conf default configuration file

git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@2235 fd59a12c-fef9-0310-b244-a6a79926bd2f
Jan Friesse před 16 roky
rodič
revize
c54e74e3f6
4 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 1 1
      configure.ac
  2. 1 1
      exec/coroparse.c
  3. 1 1
      exec/totemconfig.c
  4. 2 2
      tools/corosync-keygen.c

+ 1 - 1
configure.ac

@@ -24,7 +24,7 @@ if test "$prefix" = "NONE"; then
 	fi
 	dnl Fix "sysconfdir" variable if not specified
 	if test "$sysconfdir" = "\${prefix}/etc"; then
-		sysconfdir="/etc"
+		sysconfdir="/etc/corosync"
 	fi
 	dnl Fix "libdir" variable if not specified
 	if test "$libdir" = "\${exec_prefix}/lib"; then

+ 1 - 1
exec/coroparse.c

@@ -219,7 +219,7 @@ static int read_uidgid_files_into_objdb(
 	int res = 0;
 	struct stat stat_buf;
 
-	dirname = SYSCONFDIR "/corosync/uidgid.d";
+	dirname = SYSCONFDIR "/uidgid.d";
 	dp = opendir (dirname);
 
 	if (dp == NULL)

+ 1 - 1
exec/totemconfig.c

@@ -764,7 +764,7 @@ int totem_config_keyread (
 	if (!got_key) {
 		const char *filename = getenv("COROSYNC_TOTEM_AUTHKEY_FILE");
 		if (!filename)
-			filename = SYSCONFDIR "/ais/authkey";
+			filename = SYSCONFDIR "/authkey";
 		res = read_keyfile(filename, totem_config, error_string);
 		if (res)
 			goto key_error;

+ 2 - 2
tools/corosync-keygen.c

@@ -44,7 +44,7 @@
 
 #include <netinet/in.h>
 
-#define KEYFILE SYSCONFDIR "/ais/authkey"
+#define KEYFILE SYSCONFDIR "/authkey"
 
 int main (void) {
 	int authkey_fd;
@@ -57,7 +57,7 @@ int main (void) {
 		printf ("Error: Authorization key must be generated as root user.\n");
 		exit (1);
 	}
-	if (mkdir (SYSCONFDIR "/ais", 0700)) {
+	if (mkdir (SYSCONFDIR, 0700)) {
 		if (errno != EEXIST) {
 			perror ("Failed to create directory: " SYSCONFDIR "/ais");
 			exit (1);