mirror of
				https://github.com/tteck/Proxmox.git
				synced 2025-10-30 18:39:10 +00:00 
			
		
		
		
	Update debian-install.sh
Testing Enable Root SSH Access
This commit is contained in:
		
							parent
							
								
									a8433ea36c
								
							
						
					
					
						commit
						9f192aeec2
					
				| @ -42,7 +42,7 @@ function msg_error() { | |||||||
|   echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}" |   echo -e "${BFR} ${CROSS} ${RD}${msg}${CL}" | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| msg_info "Setting up Container OS " | msg_info "Setting up Container OS" | ||||||
| sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen | sed -i "/$LANG/ s/\(^# \)//" /etc/locale.gen | ||||||
| locale-gen >/dev/null | locale-gen >/dev/null | ||||||
| while [ "$(hostname -I)" = "" ]; do | while [ "$(hostname -I)" = "" ]; do | ||||||
| @ -100,6 +100,12 @@ EOF | |||||||
|   systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') |   systemctl restart $(basename $(dirname $GETTY_OVERRIDE) | sed 's/\.d//') | ||||||
|   msg_ok "Customized Container" |   msg_ok "Customized Container" | ||||||
| fi | fi | ||||||
|  | if [[ "${SSH_ROOT}" == "yes" ]]; then | ||||||
|  |     cat <<EOF >>/etc/ssh/sshd_config | ||||||
|  | PermitRootLogin yes | ||||||
|  | EOF | ||||||
|  | systemctl restart sshd | ||||||
|  | fi | ||||||
| 
 | 
 | ||||||
| msg_info "Cleaning up" | msg_info "Cleaning up" | ||||||
| apt-get autoremove >/dev/null | apt-get autoremove >/dev/null | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user