Skip to content

Instantly share code, notes, and snippets.

@Psycojoker
Last active May 27, 2019 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Psycojoker/71aca1767738c4b254b6cd74e09c28e1 to your computer and use it in GitHub Desktop.
Save Psycojoker/71aca1767738c4b254b6cd74e09c28e1 to your computer and use it in GitHub Desktop.
version = "0.1"
name = "Unattended-upgrades configuration panel"
[main]
name = "Unattended-upgrades configuration"
[main.unattended_configuration]
name = "50unattended-upgrades configuration file"
[main.unattended_configuration.upgrade_level]
name = "Choose the sources of packages to automatically upgrade."
default = "Security only"
type = "text"
help = "We can't use a choices field for now. In the meantime please choose between one of this values:<br>Security only, Security and updates."
# choices = ["Security only", "Security and updates"]
[main.unattended_configuration.ynh_update]
name = "Would you like to update YunoHost packages automatically ?"
type = "bool"
default = true
[main.unattended_configuration.unattended_mail]
name = "Would you like to receive an email from Unattended-Upgrades ?"
default = "If an upgrade has been done"
type = "text"
help = "We can't use a choices field for now. In the meantime please choose between one of this values:<br>If an upgrade has been done, Only if there was an error, Never."
# choices = ["If an upgrade has been done", "Only if there was an error", "Never"]
[main.apticron_configuration]
name = "apticron cron file"
[main.apticron_configuration.previous_apticron]
name = "Would you like to receive an email to inform which upgrades need to be done ?"
type = "bool"
default = true
[main.apticron_configuration.previous_apticron_hours]
name = "When do you want to receive this email ?"
type = "number"
default = 20
help = "Choose an hour between 12 and 23.<br>"
[main.apticron_configuration.after_apticron]
name = "Would you like to receive an email to verify if there any upgrades left after each auto upgrade ?"
type = "bool"
default = true
[main.apticron_configuration.after_apticron_hour]
name = "When do you want to receive this email ?"
type = "number"
default = 2
help = "Choose an hour between 0 and 10."
[main.periodic_configuration]
name = "02periodic apt config file"
[main.periodic_configuration.unattended_verbosity]
name = "Choose the level of verbosity of Unattended-Upgrades mail"
default = "1"
type = "text"
# choices = ["1", "2", "3"]
help = "1: Progress report only.<br>2: Progress report and command outputs.<br>3: Progress report and command outputs and trace."
[main.overwrite_files]
name = "Overwriting config files"
[main.overwrite_files.overwrite_periodic]
name = "Overwrite the config file 02periodic ?"
type = "bool"
default = true
help = "If the file is overwritten, a backup will be created."
[main.global_config]
name = "Global configuration"
[main.global_config.email_type]
name = "Send HTML email to admin ?"
default = true
type = "bool"
help = "Allow app scripts to send HTML mails instead of plain text."
name = "Unattended-upgrades"
id = "unattended_upgrades"
license = "GPL-2.0-or-later"
url = "https://wiki.debian.org/UnattendedUpgrades"
multi_instance = false
version = "1.0~ynh4"
packaging_format = 1
services = []
[maintainer]
name = "Maniack Crudelis"
email = "maniackc_dev@crudelis.fr"
# equivalent to above
maintainer.name = "Maniack Crudelis"
maintainer.email = "maniackc_dev@crudelis.fr"
requirements.yunohost = ">= 3.4"
description.fr = "Mise xe0 jour automatique quotidienne."
description.en = "Daily automatic upgrades"
[install]
[install.upgrade_level]
default = "Security only"
choices = ["Security only", "Security and updates"]
ask.fr = "Choisissez les sources des paquets xe0 mettre xe0 jour automatiquement"
ask.en = "Choose the sources of packages to automatically upgrade"
[install.ynh_update]
default = true
type = "boolean"
ask.fr = "Souhaitez-vous mettre xe0 jour les paquets YunoHost automatiquement ?"
ask.en = "Would you like to update YunoHost packages automatically ?"
[install.previous_apticron]
default = true
type = "boolean"
ask.fr = "Souhaitez-vous recevoir un email pour vous informer des mises xe0 jour nxe9cessaires ?"
ask.en = "Would you like to receive an email to inform which upgrades need to be done ?"
[install.after_apticron]
default = true
type = "boolean"
name = "after_apticron"
ask.fr = "Souhaitez-vous recevoir un email pour vxe9rifier s'il reste des mises xe0 jour aprxe8s chaque mise xe0 niveau automatique ?"
ask.en = "Would you like to receive an email to verify if there any upgrades left after each auto upgrade ?"
[install.unattended_mail]
default = "If an upgrade has been done"
choices = [ "If an upgrade has been done", "Only if there was an error", "Never",]
ask.fr = "Souhaitez-vous recevoir un email de Unattended-Upgrades ?"
ask.en = "Would you like to receive an email from Unattended-Upgrades ?"
[install.unattended_verbosity]
default = "1"
choices = [ "1", "2", "3",]
ask.fr = "Choisir le niveau de verbositxe9 du mail de Unattended-Upgrades"
ask.en = "Choose the level of verbosity of Unattended-Upgrades mail"
help.fr = "1: Rapport d'avancement seulement.<br>2: Rapport d'avancement et sortie de commandes.<br>3: Rapport d'avancement, sortie de commandes et trace."
help.en = "1: Progress report only.<br>2: Progress report and command outputs.<br>3: Progress report and command outputs and trace.<br>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment