summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2016-09-06 15:55:08 +0900
committerKyungwook Tak <k.tak@samsung.com>2016-09-06 17:39:43 +0900
commit8ccec6785ee30fb7c9e06a3421f5b460364b2968 (patch)
treec78588e97cdd932123774d7fbed9be45be4bcb24 /systemd
parentf327e9fca40ad1cf62ac18e052f09c65debac72b (diff)
downloadlibwebappenc-8ccec6785ee30fb7c9e06a3421f5b460364b2968.tar.gz
libwebappenc-8ccec6785ee30fb7c9e06a3421f5b460364b2968.tar.bz2
libwebappenc-8ccec6785ee30fb7c9e06a3421f5b460364b2968.zip
Add upgrade script
Change-Id: I4d38443cf3880b50215aa36e084445cc8bbb60be Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Diffstat (limited to 'systemd')
-rw-r--r--systemd/CMakeLists.txt24
-rw-r--r--systemd/webappenc-initializer.service.in8
2 files changed, 20 insertions, 12 deletions
diff --git a/systemd/CMakeLists.txt b/systemd/CMakeLists.txt
index bf7bb79..99eafd5 100644
--- a/systemd/CMakeLists.txt
+++ b/systemd/CMakeLists.txt
@@ -1,8 +1,16 @@
-CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/systemd/webappenc-initializer.service.in
- ${CMAKE_SOURCE_DIR}/systemd/webappenc-initializer.service @ONLY)
-
-INSTALL(FILES
- ${CMAKE_SOURCE_DIR}/systemd/webappenc-initializer.service
- DESTINATION
- ${SYSTEMD_UNIT_DIR}
-)
+# Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+CONFIGURE_FILE(webappenc-initializer.service.in webappenc-initializer.service @ONLY)
+INSTALL(FILES webappenc-initializer.service DESTINATION ${SYSTEMD_UNIT_DIR})
diff --git a/systemd/webappenc-initializer.service.in b/systemd/webappenc-initializer.service.in
index 768552e..ed0bebe 100644
--- a/systemd/webappenc-initializer.service.in
+++ b/systemd/webappenc-initializer.service.in
@@ -5,11 +5,11 @@ Requires=central-key-manager.service
After=central-key-manager.service
[Service]
-User=security_fw
-Group=security_fw
+User=@USER_NAME@
+Group=@GROUP_NAME@
Type=oneshot
-ExecStart=/usr/bin/wae_initializer
-SmackProcessLabel=System
+ExecStart=@BINDIR@/wae_initializer
+SmackProcessLabel=@SMACK_DOMAIN@
[Install]
WantedBy=multi-user.target