]> ##podman ###0.0.0 - Initial scaffolding. Not a functional release — see CHANGELOG.md for the authoritative, up-to-date history; this block is kept in sync with it by hand at release time (scripts/release.sh does not touch this section). if [ "$(uname -m)" != "x86_64" ]; then echo "unraid-podman only supports x86_64 (detected: $(uname -m)) - aborting install." exit 1 fi &baseURL;/&podman_txz_file; &podman_txz_md5; &baseURL;/&conmon_txz_file; &conmon_txz_md5; &baseURL;/&crun_txz_file; &crun_txz_md5; &baseURL;/&netavark_txz_file; &netavark_txz_md5; &baseURL;/&aardvark_dns_txz_file; &aardvark_dns_txz_md5; &baseURL;/&passt_txz_file; &passt_txz_md5; &baseURL;/&fuse_overlayfs_txz_file; &fuse_overlayfs_txz_md5; &baseURL;/&catatonit_txz_file; &catatonit_txz_md5; &baseURL;/&nftables_txz_file; &nftables_txz_md5; &baseURL;/&docker_compose_txz_file; &docker_compose_txz_md5; &baseURL;/&unraid_podman_txz_file; &unraid_podman_txz_md5; set -u echo "Setting permissions..." chmod 0755 /etc/rc.d/rc.podman chmod 0755 /usr/local/sbin/*.sh chmod 0755 /usr/local/emhttp/plugins/podman/event/disks_mounted chmod 0755 /usr/local/emhttp/plugins/podman/event/stopping echo "Writing installed-package manifest..." mkdir -p /usr/local/share/unraid-podman MANIFEST=/usr/local/share/unraid-podman/installed-versions.env echo "# Generated by podman.plg postinstall - do not edit by hand." > "$MANIFEST" echo "# Read by podman-verify-packages.sh and podman-update-packages.sh." >> "$MANIFEST" echo "PLUGIN_VERSION=\"&version;\"" >> "$MANIFEST" echo "PODMAN_INSTALLED_VERSION=\"&podman_txz_version;\"" >> "$MANIFEST" echo "CONMON_INSTALLED_VERSION=\"&conmon_txz_version;\"" >> "$MANIFEST" echo "CRUN_INSTALLED_VERSION=\"&crun_txz_version;\"" >> "$MANIFEST" echo "NETAVARK_INSTALLED_VERSION=\"&netavark_txz_version;\"" >> "$MANIFEST" echo "AARDVARK_DNS_INSTALLED_VERSION=\"&aardvark_dns_txz_version;\"" >> "$MANIFEST" echo "PASST_INSTALLED_VERSION=\"&passt_txz_version;\"" >> "$MANIFEST" echo "FUSE_OVERLAYFS_INSTALLED_VERSION=\"&fuse_overlayfs_txz_version;\"" >> "$MANIFEST" echo "CATATONIT_INSTALLED_VERSION=\"&catatonit_txz_version;\"" >> "$MANIFEST" echo "NFTABLES_INSTALLED_VERSION=\"&nftables_txz_version;\"" >> "$MANIFEST" echo "DOCKER_COMPOSE_INSTALLED_VERSION=\"&docker_compose_txz_version;\"" >> "$MANIFEST" echo "UNRAID_PODMAN_INSTALLED_VERSION=\"&unraid_podman_txz_version;\"" >> "$MANIFEST" echo "Seeding /boot/config/plugins/podman/ configuration (existing files left untouched)..." /usr/local/sbin/podman-config.sh seed echo "Verifying package installation..." if /usr/local/sbin/podman-verify-packages.sh --quiet; then echo "Package verification OK." else echo "WARNING: package verification reported problems - see /boot/config/plugins/podman/plugin.log" fi echo "Starting podman..." if /etc/rc.d/rc.podman start; then echo "" echo "----------------------------------------------------" echo " unraid-podman &version; has been installed and started." echo " CLI: podman --url unix:///var/run/podman/podman.sock ..." echo " Docs: https://github.com/&github;" echo "----------------------------------------------------" echo "" else echo "" echo "----------------------------------------------------" echo " unraid-podman &version; was installed but did not start cleanly." echo " It will be retried automatically the next time the array starts" echo " (see /usr/local/emhttp/plugins/podman/event/disks_mounted)." echo " Check /boot/config/plugins/podman/plugin.log for details." echo "----------------------------------------------------" echo "" fi echo "Running unraid-podman cleanup..." /usr/local/sbin/podman-uninstall-cleanup.sh echo "Removing packages..." removepkg &podman_txz_file; removepkg &conmon_txz_file; removepkg &crun_txz_file; removepkg &netavark_txz_file; removepkg &aardvark_dns_txz_file; removepkg &passt_txz_file; removepkg &fuse_overlayfs_txz_file; removepkg &catatonit_txz_file; removepkg &nftables_txz_file; removepkg &docker_compose_txz_file; removepkg &unraid_podman_txz_file; echo "" echo "unraid-podman removed. Your configuration, backups, and container" echo "storage under /boot/config/plugins/podman/ and the configured" echo "STORAGE_PATH were left in place - see docs/INSTALL.md if you want" echo "to remove them too." echo ""