mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update build.func
This commit is contained in:
		@@ -1053,41 +1053,21 @@ lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file
 | 
				
			|||||||
EOF
 | 
					EOF
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					  # This starts the container and executes <app>-install.sh
 | 
				
			||||||
 | 
					  msg_info "Starting LXC Container"
 | 
				
			||||||
# This starts the container and executes <app>-install.sh
 | 
					  pct start "$CTID"
 | 
				
			||||||
msg_info "Starting LXC Container"
 | 
					  msg_ok "Started LXC Container"
 | 
				
			||||||
pct start "$CTID"
 | 
					  if [ "$var_os" == "alpine" ]; then
 | 
				
			||||||
msg_ok "Started LXC Container"
 | 
					    sleep 3
 | 
				
			||||||
 | 
					    pct exec "$CTID" -- /bin/sh -c 'cat <<EOF >/etc/apk/repositories
 | 
				
			||||||
msg_info "Customizing LXC Container"
 | 
					 | 
				
			||||||
: "${tz:=Etc/UTC}"
 | 
					 | 
				
			||||||
if [ "$var_os" == "alpine" ]; then
 | 
					 | 
				
			||||||
  sleep 3
 | 
					 | 
				
			||||||
  pct exec "$CTID" -- /bin/sh -c 'cat <<EOF >/etc/apk/repositories
 | 
					 | 
				
			||||||
http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
 | 
					http://dl-cdn.alpinelinux.org/alpine/latest-stable/main
 | 
				
			||||||
http://dl-cdn.alpinelinux.org/alpine/latest-stable/community
 | 
					http://dl-cdn.alpinelinux.org/alpine/latest-stable/community
 | 
				
			||||||
EOF'
 | 
					EOF'
 | 
				
			||||||
  pct exec "$CTID" -- ash -c "apk add bash newt curl openssh nano mc ncurses >/dev/null"
 | 
					    pct exec "$CTID" -- ash -c "apk add bash >/dev/null"
 | 
				
			||||||
else
 | 
					 | 
				
			||||||
  sleep 3
 | 
					 | 
				
			||||||
  pct exec "$CTID" -- bash -c "sed -i '/$LANG/ s/^# //' /etc/locale.gen"
 | 
					 | 
				
			||||||
  pct exec "$CTID" -- bash -c "locale_line=\$(grep -v '^#' /etc/locale.gen | grep -E '^[a-zA-Z]' | awk '{print \$1}' | head -n 1) && \
 | 
					 | 
				
			||||||
    echo LANG=\$locale_line >/etc/default/locale && \
 | 
					 | 
				
			||||||
    locale-gen >/dev/null && \
 | 
					 | 
				
			||||||
    export LANG=\$locale_line"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
  if pct exec "$CTID" -- test -e "/usr/share/zoneinfo/$tz"; then
 | 
					 | 
				
			||||||
    pct exec "$CTID" -- bash -c "echo $tz >/etc/timezone && ln -sf /usr/share/zoneinfo/$tz /etc/localtime"
 | 
					 | 
				
			||||||
  else
 | 
					 | 
				
			||||||
    msg_info "Skipping timezone setup – zone '$tz' not found in container"
 | 
					 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					  lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  pct exec "$CTID" -- bash -c "apt-get update >/dev/null && apt-get install -y sudo curl mc gnupg2 >/dev/null"
 | 
					}
 | 
				
			||||||
fi
 | 
					 | 
				
			||||||
msg_ok "Customized LXC Container"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/"$var_install".sh)" $?
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# This function sets the description of the container.
 | 
					# This function sets the description of the container.
 | 
				
			||||||
description() {
 | 
					description() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user