Adds packages to predefined Aptly repositories. Used in combination with the aptly component.
Debian/Ubuntu operating system.
- Adds a script
/usr/local/bin/aptly_add_packages.sh
that adds packages from the configured directories to the configured Aptly repositories. - Triggers this script for a first run.
- Ensures all files added to the repository in this way are readable by the webserver.
The aptly_add_packages.sh
performs an su
to the Aptly user, so it must be run by a user with appropriate privileges.
All these variables are required:
aptly__packages
: See aptly component.webserver_group
: String group of the webserver to be used to ensure readability of packages added to the repo.aptly__user
: String name of the Aptly user.aptly__homedir
: String homedirectory of the Aptly user.
2023 Written by Dawa Ometto (Utrecht University)