fix file access error by permission. 28/244328/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified tizen_6.0 tizen_6.0_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.0/unified/20201030.114022 accepted/tizen/6.0/unified/hotfix/20201103.002207 accepted/tizen/6.5/unified/20211028.115629 accepted/tizen/7.0/unified/20221110.063612 accepted/tizen/7.0/unified/hotfix/20221116.105802 accepted/tizen/8.0/unified/20231005.093845 accepted/tizen/unified/20200918.071503 accepted/tizen/unified/riscv/20231226.210754 submit/tizen/20200918.052452 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 submit/tizen_6.5/20211028.162501 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorjiehwan <jiehwan.park@samsung.com>
Thu, 17 Sep 2020 09:02:25 +0000 (18:02 +0900)
committerjiehwan.park <jiehwan.park@samsung.com>
Thu, 17 Sep 2020 09:14:22 +0000 (18:14 +0900)
setup-adaptor service daemon was changed root to system_fw user.
but /opt/etc/setup-adaptor is created as root in ism. so can't be deleted by setup-adaptor.
the problem is that setup adaptor is activated every booting time.
to resolve this, add script to make setup-adaptor directory in spec file.

Change-Id: I636860441775ac6ef2fbfecf5264535ceae35a79
Signed-off-by: jiehwan.park <jiehwan.park@samsung.com>
packaging/setup-adaptor.spec

index 86d1ad1..2dd379c 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       setup-adaptor
 Summary:    Provide network and system data setting daemon
-Version:    0.3.0
+Version:    0.3.1
 Release:    0
 Group:      System & System Tools
 ExclusiveArch: %{arm} aarch64
@@ -43,6 +43,7 @@ MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
 install -m 0644 %SOURCE2 %{buildroot}%{_unitdir}/%{name}.service
 %install_service multi-user.target.wants %{name}.service
+mkdir -p %{buildroot}/opt/etc/setup-adaptor
 
 %post
 
@@ -51,6 +52,7 @@ install -m 0644 %SOURCE2 %{buildroot}%{_unitdir}/%{name}.service
 %postun
 
 %files
+%attr(0755,system_fw,system_fw) %dir /opt/etc/setup-adaptor
 %manifest %{name}.manifest
 %defattr(-,root,root,-)
 %license LICENSE.Apache-2.0