diff --git a/ct/podman.sh b/ct/podman.sh index 6e35f6901..bf0fdaa65 100644 --- a/ct/podman.sh +++ b/ct/podman.sh @@ -29,7 +29,7 @@ function update_script() { fi msg_info "Updating ${APP} LXC" $STD apt update - $STD apt -y upgrade + $STD apt upgrade -y msg_ok "Updated successfully!" exit } diff --git a/install/podman-install.sh b/install/podman-install.sh index 4e10b5c1e..997522368 100644 --- a/install/podman-install.sh +++ b/install/podman-install.sh @@ -13,12 +13,8 @@ setting_up_container network_check update_os -get_latest_release() { - curl -fsSL https://api.github.com/repos/$1/releases/latest | grep '"tag_name":' | cut -d'"' -f4 -} - -PORTAINER_LATEST_VERSION=$(get_latest_release "portainer/portainer") -PORTAINER_AGENT_LATEST_VERSION=$(get_latest_release "portainer/agent") +PORTAINER_LATEST_VERSION=$(get_latest_github_release "portainer/portainer") +PORTAINER_AGENT_LATEST_VERSION=$(get_latest_github_release "portainer/agent") if $STD mount | grep 'on / type zfs' >null && echo "ZFS"; then msg_info "Enabling ZFS support." @@ -44,8 +40,8 @@ EOF fi msg_info "Installing Podman" -$STD apt -y install podman -$STD systemctl enable --now podman.socket +$STD apt install -y podman +systemctl enable -q --now podman.socket echo -e 'unqualified-search-registries=["docker.io"]' >>/etc/containers/registries.conf msg_ok "Installed Podman"