{"id":2363,"date":"2024-11-18T21:52:13","date_gmt":"2024-11-18T20:52:13","guid":{"rendered":"https:\/\/alessandromasciadri.com\/?p=2363"},"modified":"2024-11-18T21:55:16","modified_gmt":"2024-11-18T20:55:16","slug":"come-aggiornare-mailcow","status":"publish","type":"post","link":"https:\/\/alessandromasciadri.com\/come-aggiornare-mailcow\/","title":{"rendered":"Come aggiornare mailcow"},"content":{"rendered":"\t\t<div data-akihiro-type=\"ama-post\" data-akihiro-id=\"2363\" class=\"akihiro akihiro-2363\" data-akihiro-post-type=\"post\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-9a062ce e-flex e-con-boxed e-con e-parent\" data-id=\"9a062ce\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"akihiro-element akihiro-element-ce1ddf0 akihiro-widget akihiro-widget-text-editor\" data-id=\"ce1ddf0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>In questo scenario viene illustrato come eseguire l&#8217;aggiornamento di un&#8217;istanza di mailcow dockerized utilizzando i tools in esso integrati.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-bad7fe2 akihiro-widget akihiro-widget-heading\" data-id=\"bad7fe2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Aggiornamento automatico<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-69df2bd akihiro-widget akihiro-widget-text-editor\" data-id=\"69df2bd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\tNella directory di mailcow-dockerized \u00e8 presente uno script di aggiornamento che si occupa in sicurezza di tutto il processo. Lo script si chiama banalmente <code>update.sh<\/code> e per lanciarlo \u00e8 sufficiente questo comando:\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-6999062 akihiro-widget akihiro-widget-code-highlight\" data-id=\"6999062\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-tomorrow copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>.\/update.sh<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-f49324b akihiro-widget akihiro-widget-text-editor\" data-id=\"f49324b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Una volta lanciato si occupa in autonomia del processo di aggiornamento, ma nel caso dovesse essere necessario, chieder\u00e0 conferma delle operazioni da eseguire.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-4bd56ed akihiro-widget akihiro-widget-heading\" data-id=\"4bd56ed\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t<h3 class=\"akihiro-heading-title akihiro-size-default\">Opzioni dello script di aggiornamento<\/h3>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-5818382 akihiro-widget akihiro-widget-text-editor\" data-id=\"5818382\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Dalla documentazione ufficiale di mailcow-dockerized si evince che \u00e8 possibile invocare lo script di aggiornamento con le seguenti opzioni:<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"akihiro-element akihiro-element-845dfcf akihiro-widget akihiro-widget-code-highlight\" data-id=\"845dfcf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"akihiro-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-default copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp># Options can be combined\n\n# - Check for updates and show changes\n.\/update.sh --check\n\n# - Do not start mailcow after applying an update\n.\/update.sh --skip-start\n\n# - Skip ICMP Check to public DNS resolvers (Use it only if you\u00b4ve blocked any ICMP Connections to your mailcow machine)\n.\/update.sh --skip-ping-check\n\n# - Switch your mailcow updates to the unstable (nightly) branch.\nFOR TESTING PURPOSES ONLY!!!! NOT READY FOR PRODUCTION!!!\n.\/update.sh --nightly\n\n# - Switch your mailcow updates to the stable (master) branch. Default unless you changed it with --nightly.\n.\/update.sh --stable\n\n# - Force update (unattended, but unsupported, use at own risk)\n.\/update.sh --force\n\n# - Run garbage collector to cleanup old image tags and exit\n.\/update.sh --gc\n\n# - Update with merge strategy option \"ours\" instead of \"theirs\"\n#   This will **solve conflicts** when merging in favor for your local changes and should be avoided. Local changes will always be kept, unless we changed file XY, too.\n.\/update.sh --ours\n\n# - Don't update, but prefetch images and exit\n.\/update.sh --prefetch<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>In questo scenario viene illustrato come eseguire l&#8217;aggiornamento di un&#8217;istanza di mailcow dockerized utilizzando i tools in esso integrati. Aggiornamento automatico Nella directory di mailcow-dockerized \u00e8 presente uno script di aggiornamento che si occupa in sicurezza di tutto il processo. Lo script si chiama banalmente update.sh e per lanciarlo \u00e8 sufficiente questo comando: .\/update.sh Una [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[27,20,52,19],"class_list":["post-2363","post","type-post","status-publish","format-standard","hentry","category-sistemistica","tag-docker","tag-linux","tag-mailcow","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/2363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/comments?post=2363"}],"version-history":[{"count":4,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/2363\/revisions"}],"predecessor-version":[{"id":2367,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/posts\/2363\/revisions\/2367"}],"wp:attachment":[{"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/media?parent=2363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/categories?post=2363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alessandromasciadri.com\/ama-json\/wp\/v2\/tags?post=2363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}