File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -255,52 +255,6 @@ install_binary() {
255255 log_success " Binary installed to $INSTALL_DIR /aks-flex-node"
256256}
257257
258- has_systemd_container () {
259- case " $1 " in
260- apt)
261- dpkg -s systemd-container & > /dev/null
262- ;;
263- dnf)
264- rpm -q systemd-container & > /dev/null
265- ;;
266- * )
267- return 1
268- ;;
269- esac
270- }
271-
272- install_host_prerequisites () {
273- local package_manager
274- package_manager=$( detect_package_manager) || return 1
275-
276- if has_systemd_container " $package_manager " ; then
277- log_info " Host systemd container tools already installed"
278- return 0
279- fi
280-
281- log_info " Installing host systemd container tools..."
282-
283- case " $package_manager " in
284- apt)
285- export DEBIAN_FRONTEND=noninteractive
286- apt-get update || {
287- log_error " Failed to update apt package indexes"
288- return 1
289- }
290- apt-get install -y systemd-container || {
291- log_error " Failed to install systemd-container with apt"
292- return 1
293- }
294- ;;
295- dnf)
296- dnf install -y systemd-container || {
297- log_error " Failed to install systemd-container with dnf"
298- return 1
299- }
300- ;;
301- esac
302- }
303-
304258get_microsoft_rpm_repo_url () {
305259 if ! load_os_release; then
306260 return 1
@@ -622,7 +576,6 @@ main() {
622576 install_binary " $binary_path "
623577
624578 # Setup service components
625- install_host_prerequisites
626579 install_azure_cli
627580 check_azure_cli_auth
628581 setup_permissions
You can’t perform that action at this time.
0 commit comments