[Title] give execute permission to install/remove scripts
authorjiil.hyoun <jiil.hyoun@samsung.com>
Tue, 11 Dec 2012 07:06:41 +0000 (16:06 +0900)
committerjiil.hyoun <jiil.hyoun@samsung.com>
Tue, 11 Dec 2012 07:06:41 +0000 (16:06 +0900)
[Type] Feature
[Module] Toolchain /
[Priority] Minor
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I332123e5f21fdc08e59415b095478987039bf0db

src/pkg_server/installer.rb

index dc7e4908a03e88ee9db4bf1db1c625013678fd83..1ec43ebb23736aa3520dd175b9ca0d0ddc2a6887 100644 (file)
@@ -183,6 +183,7 @@ class FileInstaller
                                target_path = target_path.gsub("/","\\")
                                cmd = "set INSTALLED_PATH=\"#{target_path}\"& #{script_file}"
                        else
+                               `chmod +x #{script_file}`
                                cmd = "INSTALLED_PATH=\"#{target_path}\" #{script_file}"
                        end
                        logger.info "  [cmd: #{cmd}]"
@@ -214,6 +215,7 @@ class FileInstaller
                                target_path = target_path.gsub("/","\\")
                                cmd = "set INSTALLED_PATH=\"#{target_path}\"& #{script_file}"
                        else
+                               `chmod +x #{script_file}`
                                cmd = "INSTALLED_PATH=\"#{target_path}\" #{script_file}"
                        end
                        logger.info "  [cmd: #{cmd}]"