|
@@ -18,6 +18,11 @@ execute_process(
|
18
|
18
|
COMMAND ln -sf ../init.d/@PROJECT_NAME@ rc6.d/K20@PROJECT_NAME@
|
19
|
19
|
WORKING_DIRECTORY "$ENV{DESTDIR}/etc"
|
20
|
20
|
)
|
|
21
|
+if(NOT EXISTS "$ENV{DESTDIR}/etc/default/@PROJECT_NAME@")
|
|
22
|
+ file(INSTALL "@CMAKE_CURRENT_SOURCE_DIR@/@PROJECT_NAME@.default" DESTINATION "/etc/default" RENAME "@PROJECT_NAME@")
|
|
23
|
+else()
|
|
24
|
+ message(STATUS "Keeping old version: $ENV{DESTDIR}/etc/default/@PROJECT_NAME@")
|
|
25
|
+endif()
|
21
|
26
|
set(SECRET_FILE "@PROJECT_NAME@.secret")
|
22
|
27
|
set(DD "@DD@")
|
23
|
28
|
set(BASE64 "@BASE64@")
|