Search This Blog

Wednesday, October 3, 2018

Debian 9 unattended upgrades Nginx and PHP 7 repo apt

I install Nginx mainline version from Nginx's officel Repo. PHP 7.2 FPM from packages.sury.org. In order to let the unattended upgrades do the work for me.
  1. I add /etc/apt/apt.conf.d/50unattended-upgrades
  2. Unattended-Upgrade::Origins-Pattern {
      ...
            "origin=nginx,label=nginx";
            "site=packages.sury.org";
    };
    
  3. Testing it out
  4. # unattended-upgrade --debug --dry-run
    Initial blacklisted packages: 
    Initial whitelisted packages: 
    Starting unattended upgrades script
    Allowed origins are: ['origin=Debian,codename=stretch,label=Debian-Security', 'origin=nginx,label=nginx', 'site=packages.sury.org']
    pkgs that look like they should be upgraded: 
    Fetched 0 B in 0s (0 B/s)                                                                                                                                             
    fetch.run() result: 0
    blacklist: []
    whitelist: []
    No packages found that can be upgraded unattended and no pending auto-removals
    

No comments:

Post a Comment