Add PATH setting at rw update script (#300) accepted/tizen/unified/20201204.123015 submit/tizen/20201203.065405
author조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
Thu, 3 Dec 2020 06:41:00 +0000 (15:41 +0900)
committer이형주/Common Platform Lab(SR)/Staff Engineer/삼성전자 <leee.lee@samsung.com>
Thu, 3 Dec 2020 06:41:00 +0000 (15:41 +0900)
Security Test return "FAIL" if shell script doesnot contain PATH setting,
even though all command line tool is executed as absolute path.
So, to avoid unnecessary failure, add PATH setting at shell script

packaging/715.dotnet_regen_app_ni.patch.sh

index 9aa2d7b..1a6dda6 100644 (file)
@@ -2,6 +2,8 @@
 #
 # RW Update Script to regenerate dotnet application native image file
 
+PATH=/usr/bin:/bin:/usr/sbin:/sbin
+
 /usr/bin/dotnettool --tac-regen-all
 /usr/bin/dotnettool --ni-regen-all-app