Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Bug 982738
Browse files Browse the repository at this point in the history
  • Loading branch information
danmcp committed Jul 29, 2013
1 parent 2271720 commit 4e04172
Show file tree
Hide file tree
Showing 16 changed files with 46 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ locked_files:
- metadata/
- env/
- env/*
- conf/
- configuration/
- configuration/*
processed_templates:
- '**/*.erb'
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@ locked_files:
- bin/
- bin/*
- configuration/
- configuration/etc/
- configuration/etc/conf.d/
- configuration/etc/conf.d/*
- metadata/
- env/
- env/*
- hooks/
- hooks/*
- tmp/
- conf/
processed_templates:
Expand Down
2 changes: 1 addition & 1 deletion cartridges/openshift-origin-cartridge-haproxy/bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ esac

echo "$version" > "$OPENSHIFT_HAPROXY_DIR/env/OPENSHIFT_HAPROXY_VERSION"

mkdir -p $OPENSHIFT_HAPROXY_DIR/{conf,conf.d,logs,run,sessions}
mkdir -p $OPENSHIFT_HAPROXY_DIR/{conf,logs,run,sessions}

if [ ! -f "$OPENSHIFT_HAPROXY_DIR/conf/haproxy.cfg" ]; then
cp ${OPENSHIFT_HAPROXY_DIR}/versions/$version/configuration/haproxy.cfg.erb $OPENSHIFT_HAPROXY_DIR/conf/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
setup_rewritten:
- bin/deploy
- bin/*
locked_files:
- env/
- env/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ locked_files:
- tools/*
- metadata/
- metadata/*
- hooks/
- hooks/*
- env/
- env/OPENSHIFT_JBOSSAS_DIR
- env/OPENSHIFT_JBOSSAS_LOG_DIR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ locked_files:
- tools/*
- metadata/
- metadata/*
- hooks/
- hooks/*
- env/
- env/OPENSHIFT_JBOSSEAP_DIR
- env/OPENSHIFT_JBOSSEAP_LOG_DIR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ locked_files:
- bin/*
- metadata/
- metadata/*
- hooks/
- hooks/*
- env/
- env/OPENSHIFT_JBOSSEWS_DIR
- env/OPENSHIFT_JBOSSEWS_LOG_DIR
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ locked_files:
- env/*
- metadata/
- metadata/*
- conf/
- conf/*
- hooks/
- hooks/*
processed_templates:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ locked_files:
- bin/*
- metadata/
- metadata/*
- hooks/
- hooks/*
- env/
- env/*
- lib/
- lib/*
- etc/
processed_templates:
- '**/*.erb'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ locked_files:
- metadata/*
- env/
- env/*
- hooks/
- hooks/*
- etc/
- etc/conf.d/
- etc/conf.d/*
processed_templates:
- '**/*.erb'
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ locked_files:
- bin/*
- configuration/
- configuration/etc/
- configuration/etc/php.ini
- configuration/etc/conf.d/
- configuration/etc/conf.d/*
- metadata/
- metadata/*
- env/
- env/*
- hooks/
- hooks/*
- conf/
processed_templates:
- '**/*.erb'
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ locked_files:
- bin/*
- metadata/
- conf.d/
- conf.d/*
- phpMyAdmin/
- phpMyAdmin/*
- env/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ locked_files:
- metadata/
- hooks/
- hooks/*
- lib/
- lib/*
processed_templates:
- '**/*.erb'
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
locked_files:
- bin/
- bin/*
- conf/
- etc/
- etc/conf.d/
- etc/conf.d/*
- hooks/
- hooks/*
- metadata/
- metadata/*
- env/
- env/OPENSHIFT_PYTHON_DIR
- env/OPENSHIFT_PYTHON_LOG_DIR
- etc/
processed_templates:
- '**/*.erb'
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ locked_files:
- bin/*
- metadata/
- metadata/*
- hooks/
- hooks/*
- etc/
- etc/conf.d/
- etc/conf.d/*
- env/
- env/OPENSHIFT_RUBY_DIR
- env/OPENSHIFT_RUBY_LOG_DIR
- etc/
processed_templates:
- 'etc/conf.d/openshift.conf.erb'
- 'metadata/jenkins_shell_command.erb'
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
"php" => [gear_uuid, gear_uuid, '40755', se_context],
"php/" => [gear_uuid, gear_uuid, '40755', se_context],
"php/conf/" => ['root', gear_uuid, '40755', se_context],
"php/configuration/etc/php.ini" => [gear_uuid, gear_uuid, '100644', se_context],
"php/configuration/etc/php.ini" => ['root', gear_uuid, '100644', se_context],
"php/conf/magic" => ['root', 'root', '100644', se_context], # symlink to /etc/httpd/conf/magic
"php/configuration/etc/" => ['root', gear_uuid, '40755', se_context],
"php/configuration/etc/conf.d/openshift.conf" => [gear_uuid, gear_uuid, '100644', se_context],
"php/configuration/etc/conf.d/openshift.conf" => ['root', gear_uuid, '100644', se_context],
"php/logs/" => [gear_uuid, gear_uuid, '40755', se_context],
"php/phplib/pear/" => [gear_uuid, gear_uuid, '40755', se_context],
"php/run/" => [gear_uuid, gear_uuid, '40755', se_context],
Expand All @@ -65,6 +65,7 @@
raise "Invalid context for #{file}" unless context?("#{app_home}/#{file}", context)
target_uid = Etc.getpwnam(user).uid.to_i
target_gid = Etc.getgrnam(group).gid.to_i

raise "Invalid ownership for #{file}" unless owner?("#{app_home}/#{file}", target_uid, target_gid)
end
end

0 comments on commit 4e04172

Please sign in to comment.