diff --git a/EGroupware-EPL-Installation.md b/EGroupware-EPL-Installation.md index bd047a1..d81438f 100644 --- a/EGroupware-EPL-Installation.md +++ b/EGroupware-EPL-Installation.md @@ -1182,7 +1182,38 @@ Manual update:
aptitude update; aptitude safe-upgrade;
 
-Automatic update: Using a cron script or cron-apt; have a look at: [https://help.ubuntu.com/community/AutomaticSecurityUpdates](https://help.ubuntu.com/community/AutomaticSecurityUpdates) or [https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo](https://help.ubuntu.com/community/AutoWeeklyUpdateHowTo) +Automatic update: +Install unattended-upgrades if it's not already installed: +``` +sudo apt-get install unattended-upgrades +``` +Now you need to add egroupware packages into list of allowed packages in 50unattended-upgrades config file: +``` +vi /etc/apt/apt.conf.d/50unattended-upgrades +``` +find the Unattended-Upgrade::Allowed-Origins and based on your distro you should add the following line: + +``` +"obs\://build.opensuse.org/stylite-epl/xUbuntu_17.10:"; +``` +in the above case since our distro was 17.10 we add the xUbuntu_17.10. If you are using other debians like deb 8/9 instead of Unattended-Upgrade::Allowed-Origins you need to look for Unattended-Upgrade::Origins-Pattern and add the following line: +``` +"o=obs://build.opensuse.org/stylite-epl/Debian_8.0,a="; +``` + +In order to check if the unattended-upgrades works with the given packages, you may run the following command: +``` +unattended-upgrades --dry-run --debug +``` +*--dry-run*: only downloads the upgradable packages but will not install them unless you run the unattended-upgrades command with no parameter. +
+If you wish to check logs and see what has happened with packages, you may read the following logs: +
+
+/var/lib/unattended-upgrades/unattended-upgrades.log
+/var/lib/unattended-upgrades/unattended-upgrades-shutdown.log 
+/var/lib/unattended-upgrades/unattended-upgrades-dpkg.log
+