pi_portal.installation.templates.config_file
TemplateFile class.
- class pi_portal.installation.templates.config_file.ConfileFileTemplate(source, destination, permissions='600', user='root')[source]
Configuration file template content.
- Parameters:
source (
str) – The path to the template file.destination (
str) – The path to render the template to.permissions (
str, default:'600') – The permissions to set on the rendered file.user (
str, default:'root') – The linux user to set as owner and group of the rendered file.