From 6ced2003ecf5fc38466263e8c16b19c7b5e70de5 Mon Sep 17 00:00:00 2001 From: "jiil.hyoun" Date: Tue, 11 Dec 2012 16:06:41 +0900 Subject: [PATCH] [Title] give execute permission to install/remove scripts [Type] Feature [Module] Toolchain / [Priority] Minor [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I332123e5f21fdc08e59415b095478987039bf0db --- src/pkg_server/installer.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg_server/installer.rb b/src/pkg_server/installer.rb index dc7e490..1ec43eb 100644 --- a/src/pkg_server/installer.rb +++ b/src/pkg_server/installer.rb @@ -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}]" -- 2.34.1