mirror of
				https://github.com/bashclub/zamba-lxc-toolbox.git
				synced 2025-11-04 00:02:26 +01:00 
			
		
		
		
	Push custom apt sources.list to container
This commit is contained in:
		@@ -111,8 +111,7 @@ sleep 5;
 | 
				
			|||||||
echo -e "$LXC_PWD\n$LXC_PWD" | lxc-attach -n$LXC_NBR passwd;
 | 
					echo -e "$LXC_PWD\n$LXC_PWD" | lxc-attach -n$LXC_NBR passwd;
 | 
				
			||||||
lxc-attach -n$LXC_NBR mkdir /root/.ssh;
 | 
					lxc-attach -n$LXC_NBR mkdir /root/.ssh;
 | 
				
			||||||
echo -e "$LXC_AUTHORIZED_KEY" | lxc-attach -n$LXC_NBR tee /root/.ssh/authorized_keys;
 | 
					echo -e "$LXC_AUTHORIZED_KEY" | lxc-attach -n$LXC_NBR tee /root/.ssh/authorized_keys;
 | 
				
			||||||
# usually not needed after adding authorized_keys: 
 | 
					pct push $LXC_NBR ./sources.list /etc/apt/sources.list
 | 
				
			||||||
# lxc-attach -n$LXC_NBR systemctl restart ssh.service
 | 
					 | 
				
			||||||
pct push $LXC_NBR ./zamba.conf /root/zamba.conf
 | 
					pct push $LXC_NBR ./zamba.conf /root/zamba.conf
 | 
				
			||||||
pct push $LXC_NBR ./$opt.sh /root/$opt.sh
 | 
					pct push $LXC_NBR ./$opt.sh /root/$opt.sh
 | 
				
			||||||
echo "Install '$opt'!"
 | 
					echo "Install '$opt'!"
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								sources.list
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								sources.list
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
				
			|||||||
 | 
					deb http://ftp.de.debian.org/debian buster main contrib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					deb http://ftp.de.debian.org/debian buster-updates main contrib
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# security updates
 | 
				
			||||||
 | 
					deb http://security.debian.org buster/updates main contrib
 | 
				
			||||||
		Reference in New Issue
	
	Block a user