Skip to content
Snippets Groups Projects
Commit 7d62f479 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

Merge branch 'task-1726-gitssh-extensions' into 'master'

Task 1726 gitssh extensions

See merge request !65
parents 4acea9dd d2a687e9
No related branches found
No related tags found
No related merge requests found
...@@ -101,6 +101,10 @@ ...@@ -101,6 +101,10 @@
// override for local development // override for local development
// ---------------------------------------------------------------------- // ----------------------------------------------------------------------
// unsafe ...
// make a check that fits your environemnt
// php_uname("n") can send a short hostname (without domain)
$bProd=!!strpos(__DIR__, '/ci.iml.unibe.ch/');
switch (php_uname("n")) { switch (php_uname("n")) {
case "USER": case "USER":
...@@ -112,6 +116,7 @@ switch (php_uname("n")) { ...@@ -112,6 +116,7 @@ switch (php_uname("n")) {
case "ci.iml.unibe.ch": case "ci.iml.unibe.ch":
case "ci": case "ci":
if ($bProd){
// synch der Pakete nur auf dem Livesystem // synch der Pakete nur auf dem Livesystem
$aConfig['mirrorPackages'] = array( $aConfig['mirrorPackages'] = array(
'puppet' => array( 'puppet' => array(
...@@ -125,6 +130,7 @@ switch (php_uname("n")) { ...@@ -125,6 +130,7 @@ switch (php_uname("n")) {
'target' => 'copy-deployment@puppet.one.iml.unibe.ch:/var/shared/imldeployment', 'target' => 'copy-deployment@puppet.one.iml.unibe.ch:/var/shared/imldeployment',
), ),
); );
}
break; break;
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment