{"id":299,"date":"2020-06-26T18:17:12","date_gmt":"2020-06-26T16:17:12","guid":{"rendered":"http:\/\/faq.binar.pl\/?p=299"},"modified":"2020-06-26T18:17:12","modified_gmt":"2020-06-26T16:17:12","slug":"automatyczne-aktualizacje","status":"publish","type":"post","link":"https:\/\/faq.binar.pl\/?p=299","title":{"rendered":"Automatyczne aktualizacje"},"content":{"rendered":"<p>Aby aktualizacje wykonywa\u0142y si\u0119 automatycznie nale\u017cy stworzy\u0107 wykonywalny skrypt w lokalizacji: <em>\/etc\/cron.daily\/update<\/em><\/p>\n<div class=\"\" style=\"color: white; padding: 1em; font-family: monospace; font-size: 9pt; border-radius: 8px; background-color: #272822; border: 1px solid #272822;\">\n<p>#!\/bin\/bash<br \/>\ntest \u2013d \/var\/log\/update || mkdir \/var\/log\/update<br \/>\nLOG=\/var\/log\/update\/`date +%Y%m%d`.log<br \/>\napt-get \u2013y update &amp;&gt;$LOG<br \/>\napt-get \u2013y upgrade &amp;&gt;&gt;$LOG<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Aby aktualizacje wykonywa\u0142y si\u0119 automatycznie nale\u017cy stworzy\u0107 wykonywalny skrypt w lokalizacji: \/etc\/cron.daily\/update #!\/bin\/bash test \u2013d \/var\/log\/update || mkdir \/var\/log\/update LOG=\/var\/log\/update\/`date +%Y%m%d`.log apt-get \u2013y update &amp;&gt;$LOG apt-get \u2013y upgrade &amp;&gt;&gt;$LOG<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-299","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/faq.binar.pl\/index.php?rest_route=\/wp\/v2\/posts\/299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/faq.binar.pl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/faq.binar.pl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/faq.binar.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/faq.binar.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=299"}],"version-history":[{"count":1,"href":"https:\/\/faq.binar.pl\/index.php?rest_route=\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":300,"href":"https:\/\/faq.binar.pl\/index.php?rest_route=\/wp\/v2\/posts\/299\/revisions\/300"}],"wp:attachment":[{"href":"https:\/\/faq.binar.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/faq.binar.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/faq.binar.pl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}