[type/__localedef] Only install dependencies in manifest. OS checking moved to gencode-remote
This commit is contained in:
		
					parent
					
						
							
								cc29e54b85
							
						
					
				
			
			
				commit
				
					
						f44888f192
					
				
			
		
					 1 changed files with 7 additions and 18 deletions
				
			
		| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# 2013-2019 Nico Schottelius (nico-cdist at schottelius.org)
 | 
					# 2013-2019 Nico Schottelius (nico-cdist at schottelius.org)
 | 
				
			||||||
# 2015 David Hürlimann (david at ungleich.ch)
 | 
					# 2015 David Hürlimann (david at ungleich.ch)
 | 
				
			||||||
 | 
					# 2020 Dennis Camera (dennis.camera at ssrq-sds-fds.ch)
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# This file is part of cdist.
 | 
					# This file is part of cdist.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					@ -18,24 +19,12 @@
 | 
				
			||||||
# You should have received a copy of the GNU General Public License
 | 
					# You should have received a copy of the GNU General Public License
 | 
				
			||||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
					# along with cdist. If not, see <http://www.gnu.org/licenses/>.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
#
 | 
					# Install required packages.
 | 
				
			||||||
# Install required packages
 | 
					 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
os=$(cat "$__global/explorer/os")
 | 
					case $(cat "${__global:?}/explorer/os")
 | 
				
			||||||
 | 
					in
 | 
				
			||||||
 | 
						(debian|devuan)
 | 
				
			||||||
case "$os" in
 | 
							__package_apt locales --state present
 | 
				
			||||||
    debian|devuan)
 | 
							;;
 | 
				
			||||||
        # Debian needs a seperate package
 | 
					 | 
				
			||||||
        __package locales --state present
 | 
					 | 
				
			||||||
    ;;
 | 
					 | 
				
			||||||
    archlinux|suse|ubuntu|scientific|centos|alpine)
 | 
					 | 
				
			||||||
        :
 | 
					 | 
				
			||||||
    ;;
 | 
					 | 
				
			||||||
    *)
 | 
					 | 
				
			||||||
        echo "Sorry, do not know how to handle os: $os" >&2
 | 
					 | 
				
			||||||
        echo "Please edit the type ${__type##*/} to fix this." >&2
 | 
					 | 
				
			||||||
        exit 1
 | 
					 | 
				
			||||||
    ;;
 | 
					 | 
				
			||||||
esac
 | 
					esac
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue