debian - running unattended-upgrades on a particular day of the weekDebian/Ubuntu: Enabling...

What is the tangent at a sharp point on a curve?

Should a narrator ever describe things based on a character's view instead of facts?

New Order #2: Turn My Way

Output visual diagram of picture

Did I make a mistake by ccing email to boss to others?

How to preserve electronics (computers, ipads, phones) for hundreds of years?

Is there a POSIX way to shutdown a UNIX machine?

Air travel with refrigerated insulin

How do you justify more code being written by following clean code practices?

When is the exact date for EOL of Ubuntu 14.04 LTS?

Friend wants my recommendation but I don't want to give it to him

What is it called when someone votes for an option that's not their first choice?

Why can't I get pgrep output right to variable on bash script?

Reason why a kingside attack is not justified

Would a primitive species be able to learn English from reading books alone?

Highest stage count that are used one right after the other?

Capacitor electron flow

Why does the frost depth increase when the surface temperature warms up?

Why do Radio Buttons not fill the entire outer circle?

What is the period/term used describe Giuseppe Arcimboldo's style of painting?

Asserting that Atheism and Theism are both faith based positions

Error in master's thesis, I do not know what to do

Why didn't Voldemort know what Grindelwald looked like?

"Marked down as someone wanting to sell shares." What does that mean?



debian - running unattended-upgrades on a particular day of the week


Debian/Ubuntu: Enabling “dist-upgrade” behavior for unattended-upgrades?unattended-upgrades does not rebootDebian unattended-upgrades does not upgrade all packagesAutomatically build kernel modules after unattended upgrades in ubuntuUnattended Upgrades not runningUnattended upgrades not running under Ubuntu 14.04Using Debian's unattended-upgrades packageUbuntu unattended upgrades not working on Ubuntu 14.04.4Unattended-Upgrades override Allowed-Origins













1















We're running unattended-upgrades on debian squeeze, and would like it to run once a week, only on a Wednesday morning.



To attempt this, we have set:




APT::Periodic::Unattended-Upgrade "7"




in /etc/apt/apt.conf.d/50unattended-upgrades



And then touched the /var/lib/apt/periodic/update-stamp to set the timestamp to a Wednesday, for instance:




touch -t 201211280000 /var/lib/apt/periodic/update-stamp




Running:




stamp=$(date --date=$(date -r /var/lib/apt/periodic/update-stamp --iso-8601) +%s 2>/dev/null)



date -u --date="1970-01-01 $stamp sec GMT"




Gives the correct timestamp:




Wed Nov 28 00:00:00 UTC 2012




However, unattended-upgrades then seems to ignore this, and run the updates on a Saturday morning.



Could anyone enlighten me as to how this parameter works, and how to set up upgrades to run on a Wednesday?










share|improve this question














bumped to the homepage by Community 13 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    We're running unattended-upgrades on debian squeeze, and would like it to run once a week, only on a Wednesday morning.



    To attempt this, we have set:




    APT::Periodic::Unattended-Upgrade "7"




    in /etc/apt/apt.conf.d/50unattended-upgrades



    And then touched the /var/lib/apt/periodic/update-stamp to set the timestamp to a Wednesday, for instance:




    touch -t 201211280000 /var/lib/apt/periodic/update-stamp




    Running:




    stamp=$(date --date=$(date -r /var/lib/apt/periodic/update-stamp --iso-8601) +%s 2>/dev/null)



    date -u --date="1970-01-01 $stamp sec GMT"




    Gives the correct timestamp:




    Wed Nov 28 00:00:00 UTC 2012




    However, unattended-upgrades then seems to ignore this, and run the updates on a Saturday morning.



    Could anyone enlighten me as to how this parameter works, and how to set up upgrades to run on a Wednesday?










    share|improve this question














    bumped to the homepage by Community 13 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      We're running unattended-upgrades on debian squeeze, and would like it to run once a week, only on a Wednesday morning.



      To attempt this, we have set:




      APT::Periodic::Unattended-Upgrade "7"




      in /etc/apt/apt.conf.d/50unattended-upgrades



      And then touched the /var/lib/apt/periodic/update-stamp to set the timestamp to a Wednesday, for instance:




      touch -t 201211280000 /var/lib/apt/periodic/update-stamp




      Running:




      stamp=$(date --date=$(date -r /var/lib/apt/periodic/update-stamp --iso-8601) +%s 2>/dev/null)



      date -u --date="1970-01-01 $stamp sec GMT"




      Gives the correct timestamp:




      Wed Nov 28 00:00:00 UTC 2012




      However, unattended-upgrades then seems to ignore this, and run the updates on a Saturday morning.



      Could anyone enlighten me as to how this parameter works, and how to set up upgrades to run on a Wednesday?










      share|improve this question














      We're running unattended-upgrades on debian squeeze, and would like it to run once a week, only on a Wednesday morning.



      To attempt this, we have set:




      APT::Periodic::Unattended-Upgrade "7"




      in /etc/apt/apt.conf.d/50unattended-upgrades



      And then touched the /var/lib/apt/periodic/update-stamp to set the timestamp to a Wednesday, for instance:




      touch -t 201211280000 /var/lib/apt/periodic/update-stamp




      Running:




      stamp=$(date --date=$(date -r /var/lib/apt/periodic/update-stamp --iso-8601) +%s 2>/dev/null)



      date -u --date="1970-01-01 $stamp sec GMT"




      Gives the correct timestamp:




      Wed Nov 28 00:00:00 UTC 2012




      However, unattended-upgrades then seems to ignore this, and run the updates on a Saturday morning.



      Could anyone enlighten me as to how this parameter works, and how to set up upgrades to run on a Wednesday?







      debian-squeeze unattended upgrade






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 3 '12 at 11:19









      dastradastra

      7314




      7314





      bumped to the homepage by Community 13 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 13 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I think, that, from /etc/cron.daily/apt, unattended upgrades use /var/lib/apt/periodic/upgrade-stamp file (not update-stamp).






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "2"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f454510%2fdebian-running-unattended-upgrades-on-a-particular-day-of-the-week%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I think, that, from /etc/cron.daily/apt, unattended upgrades use /var/lib/apt/periodic/upgrade-stamp file (not update-stamp).






            share|improve this answer




























              0














              I think, that, from /etc/cron.daily/apt, unattended upgrades use /var/lib/apt/periodic/upgrade-stamp file (not update-stamp).






              share|improve this answer


























                0












                0








                0







                I think, that, from /etc/cron.daily/apt, unattended upgrades use /var/lib/apt/periodic/upgrade-stamp file (not update-stamp).






                share|improve this answer













                I think, that, from /etc/cron.daily/apt, unattended upgrades use /var/lib/apt/periodic/upgrade-stamp file (not update-stamp).







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 22 '13 at 9:17









                Andrey SapeginAndrey Sapegin

                1,08511125




                1,08511125






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Server Fault!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f454510%2fdebian-running-unattended-upgrades-on-a-particular-day-of-the-week%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

                    Список ссавців Італії Природоохоронні статуси | Список |...

                    Українські прізвища Зміст Історичні відомості |...