forked from ungleich-public/cdist
		
	ensure all parameters for exec are executed
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								43061dc1b3
							
						
					
				
			
			
				commit
				
					
						9bdb715b7d
					
				
			
		
					 2 changed files with 1 additions and 8 deletions
				
			
		| 
						 | 
					@ -24,5 +24,4 @@ src=$1; shift
 | 
				
			||||||
dst=$1; shift
 | 
					dst=$1; shift
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dst=$(echo $dst | sed "s/^${__target_host}://")
 | 
					dst=$(echo $dst | sed "s/^${__target_host}://")
 | 
				
			||||||
 | 
					 | 
				
			||||||
cp "$recursive" "$src" "$dst"
 | 
					cp "$recursive" "$src" "$dst"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,12 +18,6 @@
 | 
				
			||||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
					# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# same as cdist default
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Usage:
 | 
					 | 
				
			||||||
#  cdist config --remote-exec "/path/to/this/script" target_host
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
target_host=$1; shift
 | 
					target_host=$1; shift
 | 
				
			||||||
# echo "Executing $@ (for $target_host)"
 | 
					echo "$@" | /bin/sh 
 | 
				
			||||||
/bin/sh -c "$@"
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue