Quellcode durchsuchen

Fix #3 again

tags/1.1
Timo Röhling vor 11 Jahren
Ursprung
Commit
1ac30effea
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      postinstall.cmake.in

+ 1
- 1
postinstall.cmake.in Datei anzeigen

@@ -43,6 +43,6 @@ if(GENERATE_SRS_SECRET AND DD AND BASE64 AND EXISTS "/dev/urandom" AND NOT EXIST
43 43
 		ERROR_QUIET
44 44
 		OUTPUT_STRIP_TRAILING_WHITESPACE
45 45
 	)
46
-file(INSTALL FILES "@CMAKE_CURRENT_BINARY_DIR@/${SECRET_FILE}" DESTINATION "/etc" FILE_PERMISSIONS OWNER_READ OWNER_WRITE)
46
+file(INSTALL FILES "@CMAKE_CURRENT_BINARY_DIR@/${SECRET_FILE}" DESTINATION "/etc" RENAME "${SECRET_FILE}" FILE_PERMISSIONS OWNER_READ OWNER_WRITE)
47 47
 file(REMOVE "@CMAKE_CURRENT_BINARY_DIR@/${SECRET_FILE}")
48 48
 endif()

Laden…
Abbrechen
Speichern