forked from ungleich-public/cdist
		
	cleanups in gencode
Signed-off-by: Nico Schottelius <nico@brief.schottelius.org>
This commit is contained in:
		
					parent
					
						
							
								d427af2ee3
							
						
					
				
			
			
				commit
				
					
						824ec459ea
					
				
			
		
					 1 changed files with 3 additions and 6 deletions
				
			
		|  | @ -32,13 +32,10 @@ case "$state_should" in | ||||||
|     present) |     present) | ||||||
|         case "$os" in |         case "$os" in | ||||||
|             archlinux) |             archlinux) | ||||||
|                 echo sed -i /etc/rc.conf \'s/^\\(DAEMONS=.*\\))/\\1 $name)/\' |                 echo "sed -i /etc/rc.conf \'s/^\\(DAEMONS=.*\\))/\\1 $name)/\'" | ||||||
|             ;; |             ;; | ||||||
|             debian|ubuntu) |             debian|ubuntu) | ||||||
|                 # FIXME: This does not work as expected: |                 echo "update-rc.d \"$name\" defaults >/dev/null" | ||||||
|                 # insserv: warning: current start runlevel(s) (3 4 5) of script `postfix' overwrites defaults (2 3 4 5). |  | ||||||
|                 #echo update-rc.d \"$name\" defaults |  | ||||||
|                 echo update-rc.d \"$name\" defaults |  | ||||||
|             ;; |             ;; | ||||||
| 
 | 
 | ||||||
| #           FIXME: Disabled until the explorer is checked | #           FIXME: Disabled until the explorer is checked | ||||||
|  | @ -61,7 +58,7 @@ case "$state_should" in | ||||||
|         case "$os" in |         case "$os" in | ||||||
|             archlinux) |             archlinux) | ||||||
|                 # Replace a) at the beginning b) in the middle c) end d) only |                 # Replace a) at the beginning b) in the middle c) end d) only | ||||||
|                 echo "sed -i /etc/rc.conf -e 's/^\(DAEMONS=(\)$name /\1/' -e 's/^\(DAEMONS=(.* \)$name \(.*\)/\1\2/' -e 's/^\(DAEMONS=(.*\) $name)/\1)/' -e 's/^\(DAEMONS=(\)$name)/\1)/'" |                 echo "sed -i /etc/rc.conf -e 's/^\\(DAEMONS=(\\)$name /\\1/' -e 's/^\\(DAEMONS=(.* \\)$name \\(.*\\)/\\1\\2/' -e 's/^\\(DAEMONS=(.*\\) $name)/\\1)/' -e 's/^\\(DAEMONS=(\\)$name)/\\1)/'" | ||||||
|             ;; |             ;; | ||||||
|             debian|ubuntu) |             debian|ubuntu) | ||||||
|                 echo update-rc.d -f \"$name\" remove |                 echo update-rc.d -f \"$name\" remove | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue