Merge branch '11.2' into bookworm

This commit is contained in:
Alexandre Aubin 2023-07-11 15:56:52 +02:00
commit 7ba6c37eb8
30 changed files with 2049 additions and 744 deletions

View file

@ -1,77 +1,34 @@
#!/bin/bash
#!/usr/bin/env python3
set -e
set -u
import sys
import requests
import json
PASTE_URL="https://paste.yunohost.org"
SERVER_URL = "https://paste.yunohost.org"
TIMEOUT = 3
_die() {
printf "Error: %s\n" "$*"
exit 1
}
def create_snippet(data):
try:
url = SERVER_URL + "/documents"
response = requests.post(url, data=data.encode('utf-8'), timeout=TIMEOUT)
response.raise_for_status()
dockey = json.loads(response.text)['key']
return SERVER_URL + "/raw/" + dockey
except requests.exceptions.RequestException as e:
print("\033[31mError: {}\033[0m".format(e))
sys.exit(1)
check_dependencies() {
curl -V > /dev/null 2>&1 || _die "This script requires curl."
}
paste_data() {
json=$(curl -X POST -s -d "$1" "${PASTE_URL}/documents")
[[ -z "$json" ]] && _die "Unable to post the data to the server."
def main():
output = sys.stdin.read()
key=$(echo "$json" \
| python3 -c 'import json,sys;o=json.load(sys.stdin);print(o["key"])' \
2>/dev/null)
[[ -z "$key" ]] && _die "Unable to parse the server response."
if not output:
print("\033[31mError: No input received from stdin.\033[0m")
sys.exit(1)
echo "${PASTE_URL}/${key}"
}
url = create_snippet(output)
usage() {
printf "Usage: ${0} [OPTION]...
print("\033[32mURL: {}\033[0m".format(url))
Read from input stream and paste the data to the YunoHost
Haste server.
For example, to paste the output of the YunoHost diagnosis, you
can simply execute the following:
yunohost diagnosis show | ${0}
It will return the URL where you can access the pasted data.
Options:
-h, --help show this help message and exit
"
}
main() {
# parse options
while (( ${#} )); do
case "${1}" in
--help|-h)
usage
exit 0
;;
*)
echo "Unknown parameter detected: ${1}" >&2
echo >&2
usage >&2
exit 1
;;
esac
shift 1
done
# check input stream
read -t 0 || {
echo -e "Invalid usage: No input is provided.\n" >&2
usage
exit 1
}
paste_data "$(cat)"
}
check_dependencies
main "${@}"
if __name__ == "__main__":
main()

View file

@ -37,14 +37,26 @@ ssl_prefer_server_ciphers = no
###############################################################################
# Regular Yunohost accounts
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
# Internally, allow authentication from apps system user who have "enable_email = true"
passdb {
driver = passwd-file
args = /etc/dovecot/app-senders-passwd
}
userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
args = /etc/dovecot/dovecot-ldap.conf
}
userdb {
driver = passwd-file
args = /etc/dovecot/app-senders-passwd
}
protocol imap {

View file

@ -56,7 +56,7 @@ server {
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/yunohost/certs/{{ domain }}/crt.pem;
resolver 127.0.0.1 127.0.1.1 valid=300s;
resolver 1.1.1.1 9.9.9.9 valid=300s;
resolver_timeout 5s;
{% endif %}
@ -115,7 +115,7 @@ server {
ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/yunohost/certs/{{ domain }}/crt.pem;
resolver 127.0.0.1 127.0.1.1 valid=300s;
resolver 1.1.1.1 9.9.9.9 valid=300s;
resolver_timeout 5s;
{% endif %}

View file

@ -107,7 +107,12 @@ virtual_alias_domains =
virtual_minimum_uid = 100
virtual_uid_maps = static:vmail
virtual_gid_maps = static:mail
smtpd_sender_login_maps= ldap:/etc/postfix/ldap-accounts.cf
smtpd_sender_login_maps=
# Regular Yunohost accounts
ldap:/etc/postfix/ldap-accounts.cf,
# Extra maps for app system users who need to send emails
hash:/etc/postfix/app_senders_login_maps
# Dovecot LDA
virtual_transport = dovecot

View file

@ -64,7 +64,7 @@ PasswordAuthentication no
{% endif %}
# Post-login stuff
Banner /etc/issue.net
# Banner none
PrintMotd no
PrintLastLog yes
ClientAliveInterval 60

18
debian/changelog vendored
View file

@ -4,6 +4,24 @@ yunohost (12.0.0) unstable; urgency=low
-- Alexandre Aubin <alex.aubin@mailoo.org> Thu, 04 May 2023 20:30:19 +0200
yunohost (11.1.22) stable; urgency=low
- security: replace $http_host by $host in nginx conf, cf https://github.com/yandex/gixy/blob/master/docs/en/plugins/hostspoofing.md / Credit to A.Wolski (3957b10e)
- security: keep fail2ban rule when reloading firewall ([#1661](https://github.com/yunohost/yunohost/pull/1661))
- regenconf: fix a stupid bug using chown instead of chmod ... (af93524c)
- postinstall: crash early if the username already exists on the system (e87ee09b)
- diagnosis: Support multiple TXT entries for TLD ([#1680](https://github.com/yunohost/yunohost/pull/1680))
- apps: Support gitea's URL format ([#1683](https://github.com/yunohost/yunohost/pull/1683))
- apps: fix a bug where YunoHost would complain that 'it needs X RAM but only Y left' with Y > X because some apps have a higher runtime RAM requirement than build time ... (4152cb0d)
- apps: Enhance app_shell() : prevent from taking the lock + improve php context with a 'phpflags' setting ([#1681](https://github.com/yunohost/yunohost/pull/1681))
- apps resources: Allow passing an actual list in the manifest.toml for the apt resource packages ([#1670](https://github.com/yunohost/yunohost/pull/1670))
- apps resources: fix a bug where port automigration between v1->v2 wouldnt work (36a17dfd)
- i18n: Translations updated for Basque, Galician, Japanese, Polish
Thanks to all contributors <3 ! (Félix Piédallu, Grzegorz Cichocki, José M, Kayou, motcha, Nicolas Palix, orhtej2, tituspijean, xabirequejo, Yann Autissier)
-- Alexandre Aubin <alex.aubin@mailoo.org> Mon, 10 Jul 2023 17:43:56 +0200
yunohost (11.1.21.4) stable; urgency=low
- regenconf: Get rid of previous tmp hack about /dev/null for people that went through the very first 11.1.21, because it's causing issue in unpriviledged LXC or similar context (8242cab7)

View file

@ -7,32 +7,44 @@ YNH_PHP_VERSION=${YNH_PHP_VERSION:-$YNH_DEFAULT_PHP_VERSION}
# Create a dedicated PHP-FPM config
#
# usage 1: ynh_add_fpm_config [--phpversion=7.X] [--use_template] [--package=packages] [--dedicated_service]
# | arg: -v, --phpversion= - Version of PHP to use.
# | arg: -t, --use_template - Use this helper in template mode.
# | arg: -p, --package= - Additionnal PHP packages to install
# | arg: -d, --dedicated_service - Use a dedicated PHP-FPM service instead of the common one.
# usage: ynh_add_fpm_config
#
# -----------------------------------------------------------------------------
# Case 1 (recommended) : your provided a snippet conf/extra_php-fpm.conf
#
# usage 2: ynh_add_fpm_config [--phpversion=7.X] --usage=usage --footprint=footprint [--dedicated_service]
# | arg: -v, --phpversion= - Version of PHP to use.
# | arg: -f, --footprint= - Memory footprint of the service (low/medium/high).
# The actual PHP configuration will be automatically generated,
# and your extra_php-fpm.conf will be appended (typically contains PHP upload limits)
#
# The resulting configuration will be deployed to the appropriate place, /etc/php/$phpversion/fpm/pool.d/$app.conf
#
# Performance-related options in the PHP conf, such as :
# pm.max_children, pm.start_servers, pm.min_spare_servers pm.max_spare_servers
# are computed from two parameters called "usage" and "footprint" which can be set to low/medium/high. (cf details below)
#
# If you wish to tweak those, please initialize the settings `fpm_usage` and `fpm_footprint`
# *prior* to calling this helper. Otherwise, "low" will be used as a default for both values.
#
# Otherwise, if you want the user to have control over these, we encourage to create a config panel
# (which should ultimately be standardized by the core ...)
#
# Case 2 (deprecate) : you provided an entire conf/php-fpm.conf
#
# The configuration will be hydrated, replacing __FOOBAR__ placeholders with $foobar values, etc.
#
# The resulting configuration will be deployed to the appropriate place, /etc/php/$phpversion/fpm/pool.d/$app.conf
#
# ----------------------
#
# fpm_footprint: Memory footprint of the service (low/medium/high).
# low - Less than 20 MB of RAM by pool.
# medium - Between 20 MB and 40 MB of RAM by pool.
# high - More than 40 MB of RAM by pool.
# Or specify exactly the footprint, the load of the service as MB by pool instead of having a standard value.
# To have this value, use the following command and stress the service.
# watch -n0.5 ps -o user,cmd,%cpu,rss -u APP
# N - Or you can specify a quantitative footprint as MB by pool (use watch -n0.5 ps -o user,cmd,%cpu,rss -u APP)
#
# | arg: -u, --usage= - Expected usage of the service (low/medium/high).
# fpm_usage: Expected usage of the service (low/medium/high).
# low - Personal usage, behind the SSO.
# medium - Low usage, few people or/and publicly accessible.
# high - High usage, frequently visited website.
#
# | arg: -d, --dedicated_service - Use a dedicated PHP-FPM service instead of the common one.
#
#
# The footprint of the service will be used to defined the maximum footprint we can allow, which is half the maximum RAM.
# So it will be used to defined 'pm.max_children'
# A lower value for the footprint will allow more children for 'pm.max_children'. And so for
@ -58,10 +70,9 @@ YNH_PHP_VERSION=${YNH_PHP_VERSION:-$YNH_DEFAULT_PHP_VERSION}
ynh_add_fpm_config() {
local _globalphpversion=${phpversion-:}
# Declare an array to define the options of this helper.
local legacy_args=vtufpd
local -A args_array=([v]=phpversion= [t]=use_template [u]=usage= [f]=footprint= [d]=dedicated_service)
local legacy_args=vufd
local -A args_array=([v]=phpversion= [u]=usage= [f]=footprint= [d]=dedicated_service)
local phpversion
local use_template
local usage
local footprint
local dedicated_service
@ -69,11 +80,28 @@ ynh_add_fpm_config() {
ynh_handle_getopts_args "$@"
# The default behaviour is to use the template.
use_template="${use_template:-1}"
local autogenconf=false
usage="${usage:-}"
footprint="${footprint:-}"
if [ -n "$usage" ] || [ -n "$footprint" ]; then
use_template=0
if [ -n "$usage" ] || [ -n "$footprint" ] || [[ -e $YNH_APP_BASEDIR/conf/extra_php-fpm.conf ]]; then
autogenconf=true
# If no usage provided, default to the value existing in setting ... or to low
local fpm_usage_in_setting=$(ynh_app_setting_get --app=$app --key=fpm_usage)
if [ -z "$usage" ]
then
usage=${fpm_usage_in_setting:-low}
ynh_app_setting_set --app=$app --key=fpm_usage --value=$usage
fi
# If no footprint provided, default to the value existing in setting ... or to low
local fpm_footprint_in_setting=$(ynh_app_setting_get --app=$app --key=fpm_footprint)
if [ -z "$footprint" ]
then
footprint=${fpm_footprint_in_setting:-low}
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$footprint
fi
fi
# Do not use a dedicated service by default
dedicated_service=${dedicated_service:-0}
@ -101,6 +129,7 @@ ynh_add_fpm_config() {
fi
if [ $dedicated_service -eq 1 ]; then
ynh_print_warn --message "Argument --dedicated_service of ynh_add_fpm_config is deprecated and to be removed in the future"
local fpm_service="${app}-phpfpm"
local fpm_config_dir="/etc/php/$phpversion/dedicated-fpm"
else
@ -131,7 +160,7 @@ ynh_add_fpm_config() {
fi
fi
if [ $use_template -eq 1 ]; then
if [ $autogenconf == "false" ]; then
# Usage 1, use the template in conf/php-fpm.conf
local phpfpm_path="$YNH_APP_BASEDIR/conf/php-fpm.conf"
# Make sure now that the template indeed exists
@ -139,10 +168,6 @@ ynh_add_fpm_config() {
else
# Usage 2, generate a PHP-FPM config file with ynh_get_scalable_phpfpm
# Store settings
ynh_app_setting_set --app=$app --key=fpm_footprint --value=$footprint
ynh_app_setting_set --app=$app --key=fpm_usage --value=$usage
# Define the values to use for the configuration of PHP.
ynh_get_scalable_phpfpm --usage=$usage --footprint=$footprint

View file

@ -80,6 +80,8 @@ do_post_regen() {
postmap -F hash:/etc/postfix/sni
python3 -c 'from yunohost.app import regen_mail_app_user_config_for_dovecot_and_postfix as r; r(only="postfix")'
[[ -z "$regen_conf_files" ]] \
|| { systemctl restart postfix && systemctl restart postsrsd; }

View file

@ -53,6 +53,8 @@ do_post_regen() {
chown root:mail /var/mail
chmod 1775 /var/mail
python3 -c 'from yunohost.app import regen_mail_app_user_config_for_dovecot_and_postfix as r; r(only="dovecot")'
[ -z "$regen_conf_files" ] && exit 0
# compile sieve script

View file

@ -62,7 +62,8 @@ do_post_regen() {
regen_conf_files=$1
# Force permission (to cover some edge cases where root's umask is like 027 and then dnsmasq cant read this file)
chown 644 /etc/resolv.dnsmasq.conf
chown root /etc/resolv.dnsmasq.conf
chmod 644 /etc/resolv.dnsmasq.conf
# Fuck it, those domain/search entries from dhclient are usually annoying
# lying shit from the ISP trying to MiTM

View file

@ -90,6 +90,9 @@
"ask_new_domain": "New domain",
"ask_new_path": "New path",
"ask_password": "Password",
"ask_dyndns_recovery_password_explain": "Please pick a recovery password for your DynDNS domain, in case you need to reset it later.",
"ask_dyndns_recovery_password": "DynDNS recovery password",
"ask_dyndns_recovery_password_explain_during_unsubscribe": "Please enter the recovery password for this DynDNS domain.",
"ask_user_domain": "Domain to use for the user's email address and XMPP account",
"backup_abstract_method": "This backup method has yet to be implemented",
"backup_actually_backuping": "Creating a backup archive from the collected files...",
@ -382,7 +385,6 @@
"domain_dns_registrar_supported": "YunoHost automatically detected that this domain is handled by the registrar **{registrar}**. If you want, YunoHost will automatically configure this DNS zone, if you provide it with the appropriate API credentials. You can find documentation on how to obtain your API credentials on this page: https://yunohost.org/registar_api_{registrar}. (You can also manually configure your DNS records following the documentation at https://yunohost.org/dns )",
"domain_dns_registrar_yunohost": "This domain is a nohost.me / nohost.st / ynh.fr and its DNS configuration is therefore automatically handled by YunoHost without any further configuration. (see the 'yunohost dyndns update' command)",
"domain_dyndns_already_subscribed": "You have already subscribed to a DynDNS domain",
"domain_dyndns_root_unknown": "Unknown DynDNS root domain",
"domain_exists": "The domain already exists",
"domain_hostname_failed": "Unable to set new hostname. This might cause an issue later (it might be fine).",
"domain_registrar_is_not_configured": "The registrar is not yet configured for domain {domain}.",
@ -398,12 +400,21 @@
"dyndns_domain_not_provided": "DynDNS provider {provider} cannot provide domain {domain}.",
"dyndns_ip_update_failed": "Could not update IP address to DynDNS",
"dyndns_ip_updated": "Updated your IP on DynDNS",
"dyndns_key_generating": "Generating DNS key... It may take a while.",
"dyndns_key_not_found": "DNS key not found for the domain",
"dyndns_no_domain_registered": "No domain registered with DynDNS",
"dyndns_no_recovery_password": "No recovery password specified! In case you loose control of this domain, you will need to contact an administrator in the YunoHost team!",
"dyndns_provider_unreachable": "Unable to reach DynDNS provider {provider}: either your YunoHost is not correctly connected to the internet or the dynette server is down.",
"dyndns_registered": "DynDNS domain registered",
"dyndns_registration_failed": "Could not register DynDNS domain: {error}",
"dyndns_subscribed": "DynDNS domain subscribed",
"dyndns_subscribe_failed": "Could not subscribe DynDNS domain: {error}",
"dyndns_unsubscribe_failed": "Could not unsubscribe DynDNS domain: {error}",
"dyndns_unsubscribed": "DynDNS domain unsubscribed",
"dyndns_unsubscribe_denied": "Failed to unsubscribe domain: invalid credentials",
"dyndns_unsubscribe_already_unsubscribed": "Domain is already unsubscribed",
"dyndns_set_recovery_password_denied": "Failed to set recovery password: invalid key",
"dyndns_set_recovery_password_unknown_domain": "Failed to set recovery password: domain not registered",
"dyndns_set_recovery_password_invalid_password": "Failed to set recovery password: password is not strong enough",
"dyndns_set_recovery_password_failed": "Failed to set recovery password: {error}",
"dyndns_set_recovery_password_success": "Recovery password set!",
"dyndns_unavailable": "The domain '{domain}' is unavailable.",
"extracting": "Extracting...",
"field_invalid": "Invalid field '{}'",
@ -514,6 +525,7 @@
"log_domain_main_domain": "Make '{}' the main domain",
"log_domain_remove": "Remove '{}' domain from system configuration",
"log_dyndns_subscribe": "Subscribe to a YunoHost subdomain '{}'",
"log_dyndns_unsubscribe": "Unsubscribe to a YunoHost subdomain '{}'",
"log_dyndns_update": "Update the IP associated with your YunoHost subdomain '{}'",
"log_help_to_get_failed_log": "The operation '{desc}' could not be completed. Please share the full log of this operation using the command 'yunohost log share {name}' to get help",
"log_help_to_get_log": "To view the log of the operation '{desc}', use the command 'yunohost log show {name}'",
@ -780,4 +792,4 @@
"yunohost_installing": "Installing YunoHost...",
"yunohost_not_installed": "YunoHost is not correctly installed. Please run 'yunohost tools postinstall'",
"yunohost_postinstall_end_tip": "The post-install completed! To finalize your setup, please consider:\n - diagnose potential issues through the 'Diagnosis' section of the webadmin (or 'yunohost diagnosis run' in command-line);\n - reading the 'Finalizing your setup' and 'Getting to know YunoHost' parts in the admin documentation: https://yunohost.org/admindoc."
}
}

View file

@ -669,12 +669,12 @@
"migration_description_0024_rebuild_python_venv": "Konpondu Python aplikazioa Bullseye eguneraketa eta gero",
"migration_0024_rebuild_python_venv_disclaimer_base": "Debian Bullseye eguneraketa dela-eta, Python aplikazio batzuk birsortu behar dira Debianekin datorren Pythonen bertsiora egokitzeko (teknikoki 'virtualenv' deritzaiona birsortu behar da). Egin artean, litekeena da Python aplikazio horiek ez funtzionatzea. YunoHost saia daiteke beherago ageri diren aplikazioen virtualenv edo ingurune birtualak birsortzen. Beste aplikazio batzuen kasuan, edo birsortze saiakerak kale egingo balu, aplikazio horien eguneraketa behartu beharko duzu.",
"migration_0021_not_buster2": "Zerbitzariak darabilen Debian bertsioa ez da Buster! Dagoeneko Buster -> Bullseye migrazioa exekutatu baduzu, errore honek migrazioa erabat arrakastatsua izan ez zela esan nahi du (bestela YunoHostek amaitutzat markatuko luke). Komenigarria izango litzateke, laguntza taldearekin batera, zer gertatu zen aztertzea. Horretarako `migrazioaren erregistro **osoa** beharko duzue, Tresnak > Erregistroak atalean eskuragarri dagoena.",
"admins": "Administratzaileak",
"admins": "Administratzaileek",
"app_action_failed": "{app} aplikaziorako {action} eragiketak huts egin du",
"config_action_disabled": "Ezin izan da '{action}' eragiketa exekutatu ezgaituta dagoelako, egiaztatu bere mugak betetzen dituzula. Laguntza: {help}",
"all_users": "YunoHosten erabiltzaile guztiak",
"all_users": "YunoHosten erabiltzaile guztiek",
"app_manifest_install_ask_init_admin_permission": "Nork izan beharko luke aplikazio honetako administrazio aukeretara sarbidea? (Aldatzea dago)",
"app_manifest_install_ask_init_main_permission": "Nor izan beharko luke aplikazio honetara sarbidea? (Aldatzea dago)",
"app_manifest_install_ask_init_main_permission": "Nork izan beharko luke aplikazio honetara sarbidea? (Aldatzea dago)",
"ask_admin_fullname": "Administratzailearen izen osoa",
"ask_admin_username": "Administratzailearen erabiltzaile-izena",
"ask_fullname": "Izen osoa",
@ -689,7 +689,7 @@
"log_settings_reset": "Berrezarri ezarpenak",
"log_settings_reset_all": "Berrezarri ezarpen guztiak",
"root_password_changed": "root pasahitza aldatu da",
"visitors": "Bisitariak",
"visitors": "Bisitariek",
"global_settings_setting_security_experimental_enabled": "Segurtasun ezaugarri esperimentalak",
"registrar_infos": "Erregistro-enpresaren informazioa",
"global_settings_setting_pop3_enabled": "Gaitu POP3",
@ -762,5 +762,9 @@
"app_not_upgraded_broken_system_continue": "{failed_app} aplikazioaren bertsio-berritzeak huts egin du eta sistema hondatu du (beraz, --continue-on-failure aukerari muzin egin zaio) eta ondorengo aplikazioen bertsio-berritzeak ezeztatu dira: {apps}",
"app_failed_to_download_asset": "{app} aplikaziorako '{source_id}' ({url}) baliabidea deskargatzeak huts egin du: {out}",
"apps_failed_to_upgrade": "Aplikazio hauen bertsio-berritzeak huts egin du: {apps}",
"apps_failed_to_upgrade_line": "\n * {app_id} (dagokion erregistroa ikusteko, exekutatu 'yunohost log show {operation_logger_name}')"
}
"apps_failed_to_upgrade_line": "\n * {app_id} (dagokion erregistroa ikusteko, exekutatu 'yunohost log show {operation_logger_name}')",
"group_mailalias_add": "'{mail}' ePosta aliasa jarri zaio '{group}' taldeari",
"group_mailalias_remove": "'{mail}' ePosta aliasa kendu zaio '{group}' taldeari",
"group_user_remove": "'{user}' erabiltzailea '{group}' taldetik kenduko da",
"group_user_add": "'{user}' erabiltzailea '{group}' taldera gehituko da"
}

View file

@ -762,5 +762,9 @@
"log_resource_snippet": "Aprovisionamento/desaprovisionamento/actualización dun recurso",
"app_resource_failed": "Fallou o aprovisionamento, desaprovisionamento ou actualización de recursos para {app}: {error}",
"app_failed_to_download_asset": "Fallou a descarga do recurso '{source_id}' ({url}) para {app}: {out}",
"app_corrupt_source": "YunoHost foi quen de descargar o recurso '{source_id}' ({url}) para {app}, pero a suma de comprobación para o recurso non concorda. Pode significar que houbo un fallo temporal na conexión do servidor á rede, OU que o recurso sufreu, dalgún xeito, cambios desde que os desenvolvedores orixinais (ou unha terceira parte maliciosa?), o equipo de YunoHost ten que investigar e actualizar o manifesto da app para mostrar este cambio.\n Suma sha256 agardada: {expected_sha256} \n Suma sha256 do descargado: {computed_sha256}\n Tamaño do ficheiro: {size}"
}
"app_corrupt_source": "YunoHost foi quen de descargar o recurso '{source_id}' ({url}) para {app}, pero a suma de comprobación para o recurso non concorda. Pode significar que houbo un fallo temporal na conexión do servidor á rede, OU que o recurso sufreu, dalgún xeito, cambios desde que os desenvolvedores orixinais (ou unha terceira parte maliciosa?), o equipo de YunoHost ten que investigar e actualizar o manifesto da app para mostrar este cambio.\n Suma sha256 agardada: {expected_sha256} \n Suma sha256 do descargado: {computed_sha256}\n Tamaño do ficheiro: {size}",
"group_mailalias_add": "Vaise engadir o alias de correo '{mail}' ao grupo '{group}'",
"group_mailalias_remove": "Vaise quitar o alias de email '{mail}' do grupo '{group}'",
"group_user_add": "Vaise engadir a '{user}' ao grupo '{grupo}'",
"group_user_remove": "Vaise quitar a '{user}' do grupo '{grupo}'"
}

770
locales/ja.json Normal file
View file

@ -0,0 +1,770 @@
{
"password_too_simple_1": "パスワードは少なくとも8文字必要です",
"aborting": "中止します。",
"action_invalid": "不正なアクション {action}",
"additional_urls_already_added": "アクセス許可 '{permission}' に対する追加URLには {url} が既に追加されています",
"admin_password": "管理者パスワード",
"app_action_cannot_be_ran_because_required_services_down": "このアクションを実行するには、次の必要なサービスが実行されている必要があります: {services} 。続行するには再起動してみてください (そして何故ダウンしているのか調査してください)。",
"app_action_failed": "{name} アプリのアクション {action}' に失敗しました",
"app_argument_invalid": "引数 '{name}' の有効な値を選択してください: {error}",
"app_argument_password_no_default": "パスワード引数 '{name}' の解析中にエラーが発生しました: セキュリティ上の理由から、パスワード引数にデフォルト値を設定することはできません",
"app_argument_required": "{name} は必要です。",
"app_change_url_failed": "{app}のURLを変更できませんでした:{error}",
"app_change_url_identical_domains": "古いドメインと新しいドメイン/url_pathは同一であり( '{domain}{path}')、何もしません。",
"app_change_url_script_failed": "URL 変更スクリプト内でエラーが発生しました",
"app_failed_to_upgrade_but_continue": "アプリの{failed_app}アップグレードに失敗しました。要求に応じて次のアップグレードに進みます。「yunohostログショー{operation_logger_name}」を実行して失敗ログを表示します",
"app_full_domain_unavailable": "申し訳ありませんが、このアプリは独自のドメインにインストールする必要がありますが、他のアプリは既にドメイン '{domain}' にインストールされています。代わりに、このアプリ専用のサブドメインを使用できます。",
"app_id_invalid": "不正なアプリID",
"app_install_failed": "インストールできません {app}:{error}",
"app_manifest_install_ask_password": "このアプリの管理パスワードを選択してください",
"app_manifest_install_ask_path": "このアプリをインストールするURLパス(ドメインの後)を選択します",
"app_not_properly_removed": "{app}が正しく削除されていません",
"app_not_upgraded": "アプリ「{failed_app}」のアップグレードに失敗したため、次のアプリのアップグレードがキャンセルされました: {apps}",
"app_start_remove": "{app} を削除しています…",
"app_start_restore": "{app} をリストアしています…",
"ask_main_domain": "メインドメイン",
"ask_new_admin_password": "新しい管理者パスワード",
"ask_new_domain": "新しいドメイン",
"ask_new_path": "新しいパス",
"ask_password": "パスワード",
"ask_user_domain": "ユーザーのメールアドレスと XMPP アカウントに使用するドメイン",
"backup_abstract_method": "このバックアップ方法はまだ実装されていません",
"backup_actually_backuping": "収集したファイルからバックアップアーカイブを作成しています...",
"backup_archive_corrupted": "バックアップアーカイブ {archive} は破損しているようです: {error}",
"backup_archive_name_exists": "この名前のバックアップアーカイブはすでに存在します。",
"backup_archive_name_unknown": "「{name}」という名前の不明なローカルバックアップアーカイブ",
"backup_archive_open_failed": "バックアップアーカイブを開けませんでした",
"backup_archive_system_part_not_available": "このバックアップでは、システム部分 '{part}' を使用できません",
"backup_method_custom_finished": "カスタム バックアップ方法 '{method}' が完了しました",
"certmanager_attempt_to_replace_valid_cert": "ドメイン {domain} の適切で有効な証明書を上書きしようとしています。(—force でバイパスする)",
"certmanager_cannot_read_cert": "ドメイン {domain} (ファイル: {file}) の現在の証明書を開こうとしたときに問題が発生しました。理由: {reason}",
"certmanager_cert_install_failed": "{domains}のLets Encrypt 証明書のインストールに失敗しました",
"certmanager_cert_install_failed_selfsigned": "{domains} ドメインの自己署名証明書のインストールに失敗しました",
"certmanager_cert_install_success": "Lets Encrypt 証明書が {domain} にインストールされました",
"certmanager_cert_install_success_selfsigned": "ドメイン「{domain}」に自己署名証明書がインストールされました",
"certmanager_domain_dns_ip_differs_from_public_ip": "ドメイン '{domain}' の DNS レコードは、このサーバーの IP とは異なります。詳細については、診断の「DNSレコード」(基本)カテゴリを確認してください。最近 A レコードを変更した場合は、反映されるまでお待ちください (一部の DNS 伝達チェッカーはオンラインで入手できます)。(何をしているかがわかっている場合は、 '--no-checks'を使用してこれらのチェックをオフにします。",
"certmanager_domain_http_not_working": "ドメイン{domain}はHTTP経由でアクセスできないようです。詳細については、診断の「Web」カテゴリを確認してください。(何をしているかがわかっている場合は、 '--no-checks'を使用してこれらのチェックをオフにします。",
"certmanager_unable_to_parse_self_CA_name": "自己署名機関の名前を解析できませんでした (ファイル: {file})",
"certmanager_domain_not_diagnosed_yet": "ドメイン{domain}の診断結果はまだありません。診断セクションのカテゴリ「DNSレコード」と「Web」の診断を再実行して、ドメインが暗号化の準備ができているかどうかを確認してください。(または、何をしているかがわかっている場合は、「--no-checks」を使用してこれらのチェックをオフにします。",
"confirm_app_insufficient_ram": "危険!このアプリのインストール/アップグレードには{required}RAMが必要ですが、現在利用可能なのは{current}つだけです。このアプリを実行できたとしても、そのインストール/アップグレードプロセスには大量のRAMが必要なため、サーバーがフリーズして惨めに失敗する可能性があります。とにかくそのリスクを冒しても構わないと思っているなら、「{answers}」と入力してください",
"confirm_notifications_read": "警告:続行する前に上記のアプリ通知を確認する必要があります、知っておくべき重要なことがあるかもしれません。[{answers}]",
"custom_app_url_required": "カスタム App をアップグレードするには URL を指定する必要があります{app}",
"danger": "危険:",
"diagnosis_cant_run_because_of_dep": "{dep}に関連する重要な問題がある間、{category}診断を実行できません。",
"diagnosis_description_apps": "アプリケーション",
"diagnosis_description_basesystem": "システム",
"diagnosis_description_dnsrecords": "DNS レコード",
"diagnosis_description_ip": "インターネット接続",
"diagnosis_description_mail": "メールアドレス",
"diagnosis_description_ports": "ポート開放",
"diagnosis_high_number_auth_failures": "最近、疑わしいほど多くの認証失敗が発生しています。fail2banが実行されていて正しく構成されていることを確認するか、https://yunohost.org/security で説明されているようにSSHにカスタムポートを使用することをお勧めします。",
"diagnosis_http_bad_status_code": "サーバーの代わりに別のマシン(おそらくインターネットルーター)が応答したようです。<br>1.この問題の最も一般的な原因は、ポート80(および443)が <a href='https://yunohost.org/isp_box_config'>サーバーに正しく転送されていない</a>ことです。<br>2.より複雑なセットアップでは、ファイアウォールまたはリバースプロキシが干渉していないことを確認します。",
"diagnosis_http_hairpinning_issue_details": "これはおそらくISPボックス/ルーターが原因です。その結果、ローカルネットワークの外部の人々は期待どおりにサーバーにアクセスできますが、ドメイン名またはグローバルIPを使用する場合、ローカルネットワーク内の人々(おそらくあなたのような人)はアクセスできません。<a href='https://yunohost.org/dns_local_network'>https://yunohost.org/dns_local_network</a> を見ることによって状況を改善できるかもしれません",
"diagnosis_ignored_issues": "(+{nb_ignored}無視された問題)",
"diagnosis_ip_dnsresolution_working": "ドメイン名前解決は機能しています!",
"diagnosis_ip_no_ipv6_tip_important": "IPv6 は通常、システムまたはプロバイダー (使用可能な場合) によって自動的に構成されます。それ以外の場合は、こちらのドキュメントで説明されているように、いくつかのことを手動で構成する必要があります: <a href='https://yunohost.org/#/ipv6'>https://yunohost.org/#/ipv6</a>。",
"diagnosis_ip_not_connected_at_all": "サーバーがインターネットに接続されていないようですね!?",
"diagnosis_ip_weird_resolvconf": "DNS名前解決は機能しているようですが、カスタムされた<code>/etc/resolv.conf</code>を使用しているようです。",
"diagnosis_ip_weird_resolvconf_details": "ファイルは<code>/etc/resolv.conf</code>、(dnsmasq)を指す<code>127.0.0.1</code>それ自体への<code>/etc/resolvconf/run/resolv.conf</code>シンボリックリンクである必要があります。DNSリゾルバーを手動で設定する場合は、編集<code>/etc/resolv.dnsmasq.conf</code>してください。",
"diagnosis_mail_blacklist_listed_by": "あなたのIPまたはドメイン <code>{item}</code> はブラックリスト {blacklist_name} に登録されています",
"diagnosis_mail_blacklist_ok": "このサーバーが使用するIPとドメインはブラックリストに登録されていないようです",
"diagnosis_mail_ehlo_could_not_diagnose_details": "エラー: {error}",
"diagnosis_mail_fcrdns_ok": "逆引きDNSが正しく構成されています",
"diagnosis_mail_fcrdns_nok_alternatives_4": "一部のプロバイダーでは、逆引きDNSを構成できません(または機能が壊れている可能性があります…)。そのせいで問題が発生している場合は、次の解決策を検討してください。<br> - 一部のISPが提供する<a href='https://yunohost.org/#/email_configure_relay'>メールサーバーリレーを使用する</a> ことで代替できますが、ISPが電子メールトラフィックを盗み見る可能性があることを意味します。<br>- プライバシーに配慮した代替手段は、この種の制限を回避するために*専用のパブリックIP*を持つVPNを使用することです。<a href='https://yunohost.org/#/vpn_advantage'>https://yunohost.org/#/vpn_advantage</a> を見る<br>-または、<a href='https://yunohost.org/#/isp'>別のプロバイダーに切り替える</a>ことが可能です",
"diagnosis_mail_outgoing_port_25_blocked_relay_vpn": "一部のプロバイダーは、ネット中立性を気にしないため、送信ポート25のブロックを解除することを許可しません。<br> -それらのいくつかは <a href='https://yunohost.org/#/email_configure_relay'>、メールサーバーリレーを使用する</a> 代替手段を提供しますが、リレーが電子メールトラフィックをスパイできることを意味します。<br>- プライバシーに配慮した代替手段は、*専用のパブリックIP*を持つVPNを使用して、これらの種類の制限を回避することです。<a href='https://yunohost.org/#/vpn_advantage'>https://yunohost.org/#/vpn_advantage</a> を見る<br>-<a href='https://yunohost.org/#/isp'>よりネット中立性に優しいプロバイダー</a>への切り替えを検討することもできます",
"diagnosis_mail_outgoing_port_25_ok": "SMTP メール サーバーは電子メールを送信できます (送信ポート 25 はブロックされません)。",
"diagnosis_mail_queue_ok": "メールキュー内の保留中のメール{nb_pending}",
"diagnosis_mail_queue_too_big": "メールキュー内の保留中のメールが多すぎます({nb_pending}メール)",
"diagnosis_mail_queue_unavailable": "キュー内の保留中の電子メールの数を調べることはできません",
"diagnosis_mail_queue_unavailable_details": "エラー: {error}",
"diagnosis_no_cache": "カテゴリ '{category}' の診断キャッシュがまだありません",
"diagnosis_ports_forwarding_tip": "この問題を解決するには、ほとんどの場合、<a href='https://yunohost.org/isp_box_config'>https://yunohost.org/isp_box_config</a> で説明されているように、インターネットルーターでポート転送を構成する必要があります",
"diagnosis_ports_needed_by": "このポートの公開は、{category}機能 (サービス {service}) に必要です。",
"diagnosis_ports_ok": "ポート {port} は外部から到達可能です。",
"diagnosis_ports_partially_unreachable": "ポート {port} は、IPv{failed} では外部から到達できません。",
"diagnosis_security_vulnerable_to_meltdown": "Meltdown(重大なセキュリティの脆弱性)に対して脆弱に見えます",
"diagnosis_services_conf_broken": "サービス{service}の構成が壊れています!",
"diagnosis_services_running": "サービス{service}が実行されています!",
"diagnosis_sshd_config_inconsistent": "SSHポートが/ etc / ssh / sshd_configで手動で変更されたようです。YunoHost 4.2以降、手動で構成を編集する必要がないように、新しいグローバル設定「security.ssh.ssh_port」を使用できます。",
"diagnosis_swap_none": "システムにスワップがまったくない。システムのメモリ不足の状況を回避するために、少なくとも {recommended} つのスワップを追加することを検討する必要があります。",
"diagnosis_swap_notsomuch": "システムにはスワップが {total} しかありません。システムのメモリ不足の状況を回避するために、少なくとも {recommended} のスワップを用意することを検討してください。",
"diagnosis_swap_ok": "システムには {total} のスワップがあります!",
"domain_cert_gen_failed": "証明書を生成できませんでした",
"domain_config_acme_eligible": "ACMEの資格",
"domain_config_cert_summary": "証明書の状態",
"domain_config_cert_summary_abouttoexpire": "現在の証明書の有効期限が近づいています。すぐに自動的に更新されるはずです。",
"domain_config_cert_summary_expired": "クリティカル: 現在の証明書が無効です!HTTPSはまったく機能しません!",
"domain_config_cert_validity": "データの入力規則",
"domain_config_xmpp": "インスタント メッセージング (XMPP)",
"domain_dns_conf_is_just_a_recommendation": "このコマンドは、*推奨*構成を表示します。実際にはDNS構成は設定されません。この推奨事項に従って、レジストラーで DNS ゾーンを構成するのはユーザーの責任です。",
"domain_dns_conf_special_use_tld": "このドメインは、.local や .test などの特殊な用途のトップレベル ドメイン (TLD) に基づいているため、実際の DNS レコードを持つことは想定されていません。",
"domain_dns_push_already_up_to_date": "レコードはすでに最新であり、何もする必要はありません。",
"domain_dns_push_failed": "DNS レコードの更新が失敗しました。",
"domain_dyndns_already_subscribed": "すでに DynDNS ドメインにサブスクライブしている",
"dyndns_key_generating": "DNS キーを生成しています...しばらく時間がかかる場合があります。",
"dyndns_key_not_found": "ドメインの DNS キーが見つかりません",
"firewall_reload_failed": "バックアップアーカイブを開けませんでした",
"global_settings_setting_postfix_compatibility_help": "Postfix サーバーの互換性とセキュリティのトレードオフ。暗号(およびその他のセキュリティ関連の側面)に影響します",
"global_settings_setting_root_password": "新しい管理者パスワード",
"global_settings_setting_root_password_confirm": "新しい管理者パスワード",
"global_settings_setting_smtp_allow_ipv6": "IPv6 を許可する",
"global_settings_setting_user_strength_help": "これらの要件は、パスワードを初期化または変更する場合にのみ適用されます",
"group_cannot_be_deleted": "グループ{group}を手動で削除することはできません。",
"group_created": "グループ '{group}' が作成されました",
"group_mailalias_add": "メール エイリアス '{mail}' がグループ '{group}' に追加されます。",
"group_mailalias_remove": "メール エイリアス '{mail}' がグループ '{group}' から削除されます。",
"group_no_change": "グループ '{group}' に対して変更はありません",
"group_unknown": "グループ '{group}' は不明です",
"group_user_already_in_group": "ユーザー {user} は既にグループ {group} に所属しています",
"group_user_not_in_group": "ユーザー {user}がグループ {group} にない",
"group_user_remove": "ユーザー '{user}' はグループ '{group}' から削除されます。",
"hook_exec_failed": "スクリプトを実行できませんでした: {path}",
"hook_exec_not_terminated": "スクリプトが正しく終了しませんでした: {path}",
"log_app_install": "{} アプリをインストールする",
"log_user_permission_update": "アクセス許可 '{}' のアクセスを更新する",
"log_user_update": "ユーザー '{}' の情報を更新する",
"mail_alias_remove_failed": "電子メール エイリアス '{mail}' を削除できませんでした",
"mail_domain_unknown": "ドメイン '{domain}' の電子メール アドレスが無効です。このサーバーによって管理されているドメインを使用してください。",
"mail_forward_remove_failed": "電子メール転送 '{mail}' を削除できませんでした",
"mail_unavailable": "この電子メール アドレスは、管理者グループ用に予約されています",
"migration_0021_start": "Bullseyeへの移行開始",
"migration_0021_yunohost_upgrade": "YunoHostコアのアップグレードを開始しています...",
"migration_description_0026_new_admins_group": "新しい「複数の管理者」システムに移行する",
"migration_ldap_backup_before_migration": "実際の移行の前に、LDAP データベースとアプリ設定のバックアップを作成します。",
"migration_ldap_can_not_backup_before_migration": "移行が失敗する前に、システムのバックアップを完了できませんでした。エラー: {error}",
"migration_ldap_migration_failed_trying_to_rollback": "移行できませんでした...システムをロールバックしようとしています。",
"permission_updated": "アクセス許可 '{permission}' が更新されました",
"restore_confirm_yunohost_installed": "すでにインストールされているシステムを復元しますか?[{answers}]",
"restore_extracting": "アーカイブから必要なファイルを抽出しています...",
"restore_failed": "バックアップを復元する {name}",
"restore_hook_unavailable": "「{part}」の復元スクリプトは、システムで使用できず、アーカイブでも利用できません",
"restore_not_enough_disk_space": "十分なスペースがありません(スペース:{free_space} B、必要なスペース:{needed_space} B、セキュリティマージン:{margin} B)",
"restore_nothings_done": "何も復元されませんでした",
"restore_removing_tmp_dir_failed": "古い一時ディレクトリを削除できませんでした",
"restore_running_app_script": "アプリ「{app}」を復元しています...",
"restore_running_hooks": "復元フックを実行しています...",
"restore_system_part_failed": "「{part}」システム部分を復元できませんでした",
"root_password_changed": "パスワード確認",
"server_reboot": "サーバーが再起動します",
"server_shutdown_confirm": "サーバーはすぐにシャットダウンしますが、よろしいですか?[{answers}]",
"service_add_failed": "サービス '{service}' を追加できませんでした",
"service_added": "サービス '{service}' が追加されました",
"service_already_started": "サービス '{service}' は既に実行されています",
"service_description_dnsmasq": "ドメイン名解決 (DNS) を処理します。",
"service_description_dovecot": "電子メールクライアントが電子メールにアクセス/フェッチすることを許可します(IMAPおよびPOP3経由)",
"service_description_fail2ban": "インターネットからのブルートフォース攻撃やその他の種類の攻撃から保護します",
"service_description_metronome": "XMPP インスタント メッセージング アカウントを管理する",
"service_description_mysql": "アプリ データの格納 (SQL データベース)",
"service_description_postfix": "電子メールの送受信に使用",
"service_description_postgresql": "アプリ データの格納 (SQL データベース)",
"service_enable_failed": "起動時にサービス '{service}' を自動的に開始できませんでした。\n\n最近のサービスログ:{logs}",
"service_enabled": "サービス '{service}' は、システムの起動時に自動的に開始されるようになりました。",
"service_reloaded": "サービス '{service}' がリロードされました",
"service_not_reloading_because_conf_broken": "構成が壊れているため、サービス「{name}」をリロード/再起動しません:{errors}",
"show_tile_cant_be_enabled_for_regex": "権限 '{permission}' の URL は正規表現であるため、現在 'show_tile' を有効にすることはできません。",
"show_tile_cant_be_enabled_for_url_not_defined": "最初にアクセス許可 '{permission}' の URL を定義する必要があるため、現在 'show_tile' を有効にすることはできません。",
"ssowat_conf_generated": "SSOワット構成の再生成",
"system_upgraded": "システムのアップグレード",
"unlimit": "クォータなし",
"update_apt_cache_failed": "APT (Debian のパッケージマネージャ) のキャッシュを更新できません。問題のある行を特定するのに役立つ可能性のあるsources.list行のダンプを次に示します。\n{sourceslist}",
"update_apt_cache_warning": "APT(Debianのパッケージマネージャー)のキャッシュを更新中に問題が発生しました。問題のある行を特定するのに役立つ可能性のあるsources.list行のダンプを次に示します。\n{sourceslist}",
"admins": "管理者",
"all_users": "YunoHostの全ユーザー",
"already_up_to_date": "何もすることはありません。すべて最新です。",
"app_action_broke_system": "このアクションは、これらの重要なサービスを壊したようです: {services}",
"app_already_installed": "アプリ '{app}' は既にインストール済み",
"app_already_installed_cant_change_url": "このアプリは既にインストールされています。この機能だけではURLを変更することはできません。利用可能な場合は、`app changeurl`を確認してください。",
"app_already_up_to_date": "{app} アプリは既に最新です",
"app_arch_not_supported": "このアプリはアーキテクチャ {required} にのみインストールできますが、サーバーのアーキテクチャは{current} です",
"app_argument_choice_invalid": "引数 '{name}' に有効な値を選択してください: '{value}' は使用可能な選択肢に含まれていません ({choices})",
"app_change_url_no_script": "アプリ「{app_name}」はまだURLの変更をサポートしていません。多分あなたはそれをアップグレードする必要があります。",
"app_change_url_require_full_domain": "{app}は完全なドメイン(つまり、path = /)を必要とするため、この新しいURLに移動できません。",
"app_change_url_success": "{app} URL が{domain}{path}されました",
"app_config_unable_to_apply": "設定パネルの値を適用できませんでした。",
"app_config_unable_to_read": "設定パネルの値の読み取りに失敗しました。",
"app_corrupt_source": "YunoHost はアセット '{source_id}' ({url}) を {app} 用にダウンロードできましたが、アセットのチェックサムが期待されるものと一致しません。これは、あなたのサーバーで一時的なネットワーク障害が発生したか、もしくはアセットがアップストリームメンテナ(または悪意のあるアクター?)によって何らかの形で変更され、YunoHostパッケージャーがアプリマニフェストを調査/更新する必要があることを意味する可能性があります。\n 期待される sha256 チェックサム: {expected_sha256}\n ダウンロードしたsha256チェックサム: {computed_sha256}\n ダウンロードしたファイルサイズ: {size}",
"app_extraction_failed": "インストール ファイルを抽出できませんでした",
"app_failed_to_download_asset": "{app}のアセット「{source_id}」({url})をダウンロードできませんでした:{out}",
"app_install_files_invalid": "これらのファイルはインストールできません",
"app_install_script_failed": "アプリのインストールスクリプト内部でエラーが発生しました",
"app_label_deprecated": "このコマンドは非推奨です。新しいコマンド yunohost user permission update を使用して、アプリラベルを管理してください。",
"app_location_unavailable": "この URL は利用できないか、既にインストールされているアプリと競合しています。\n{apps}",
"app_make_default_location_already_used": "「{app}」をドメインのデフォルトアプリにすることはできません。「{domain}」は「{other_app}」によってすでに使用されています",
"app_manifest_install_ask_admin": "このアプリの管理者ユーザーを選択する",
"app_manifest_install_ask_domain": "このアプリをインストールするドメインを選択してください",
"app_manifest_install_ask_init_admin_permission": "このアプリの管理機能にアクセスできるのは誰ですか?(これは後で変更できます)",
"app_manifest_install_ask_init_main_permission": "誰がこのアプリにアクセスできる必要がありますか?(これは後で変更できます)",
"app_manifest_install_ask_is_public": "このアプリは匿名の訪問者に公開する必要がありますか?",
"app_not_correctly_installed": "{app}が正しくインストールされていないようです",
"app_not_enough_disk": "このアプリには{required}の空き容量が必要です。",
"app_not_enough_ram": "このアプリのインストール/アップグレードには{required} のRAMが必要ですが、現在利用可能なのは {current} だけです。",
"app_not_installed": "インストールされているアプリのリストに{app}が見つかりませんでした: {all_apps}",
"app_not_upgraded_broken_system": "アプリ「{failed_app}」はアップグレードに失敗し、システムを壊れた状態にしたため、次のアプリのアップグレードがキャンセルされました: {apps}",
"app_not_upgraded_broken_system_continue": "アプリ {failed_app} はアップグレードに失敗し、システムを壊れた状態にした(そのためcontinue-on-failureは無視されます)ので、次のアプリのアップグレードがキャンセルされました: {apps}",
"app_restore_failed": "{app}を復元できませんでした: {error}",
"app_restore_script_failed": "アプリのリストアスクリプト内でエラーが発生しました",
"app_sources_fetch_failed": "ソースファイルをフェッチできませんでしたが、URLは正しいですか?",
"app_packaging_format_not_supported": "このアプリは、パッケージ形式がYunoHostバージョンでサポートされていないため、インストールできません。おそらく、システムのアップグレードを検討する必要があります。",
"app_remove_after_failed_install": "インストールの失敗後にアプリを削除しています...",
"app_removed": "'{app}' はアンインストール済",
"app_requirements_checking": "{app} の依存関係を確認しています…",
"app_resource_failed": "{app}のリソースのプロビジョニング、プロビジョニング解除、または更新に失敗しました: {error}",
"app_start_backup": "{app}用にバックアップするファイルを収集しています...",
"app_start_install": "{app} をインストールしています…",
"app_unknown": "未知のアプリ",
"app_unsupported_remote_type": "アプリで使用されている、サポートされないリモートの種類",
"apps_catalog_init_success": "アプリ カタログ システムが初期化されました!",
"apps_catalog_obsolete_cache": "アプリケーションカタログキャッシュが空であるか、古くなっています。",
"apps_catalog_update_success": "アプリケーションカタログを更新しました!",
"apps_catalog_updating": "アプリケーションカタログを更新しています...",
"app_upgrade_app_name": "'{app}' をアップグレードしています…",
"app_upgrade_failed": "アップグレードに失敗しました {app}: {error}",
"app_upgrade_script_failed": "アプリのアップグレードスクリプト内でエラーが発生しました",
"app_upgrade_several_apps": "次のアプリがアップグレードされます: {apps}",
"app_upgrade_some_app_failed": "一部のアプリをアップグレードできませんでした",
"app_upgraded": "'{app}' アップグレード済",
"app_yunohost_version_not_supported": "このアプリは YunoHost >= {required} を必要としますが、現在インストールされているバージョンは{current} です",
"apps_already_up_to_date": "全てのアプリが最新になりました!",
"apps_catalog_failed_to_download": "{apps_catalog} アプリ カタログをダウンロードできません: {error}",
"apps_failed_to_upgrade": "これらのアプリケーションのアップグレードに失敗しました: {apps}",
"apps_failed_to_upgrade_line": "\n * {app_id} (対応するログを表示するには、yunohost log show {operation_logger_name} を実行してください)",
"ask_admin_fullname": "管理者 フルネーム",
"ask_admin_username": "管理者ユーザー名",
"ask_fullname": "フルネーム",
"backup_app_failed": "{app}をバックアップできませんでした",
"backup_applying_method_copy": "すべてのファイルをバックアップにコピーしています...",
"backup_applying_method_custom": "カスタムバックアップメソッド {method} を呼び出しています...",
"backup_applying_method_tar": "バックアップ TAR アーカイブを作成しています...",
"backup_archive_app_not_found": "バックアップアーカイブに{app}が見つかりませんでした",
"backup_archive_broken_link": "バックアップアーカイブにアクセスできませんでした({path}へのリンクが壊れています)",
"backup_archive_cant_retrieve_info_json": "アーカイブ '{archive}' の情報を読み込めませんでした... info.json ファイルを取得できません (または有効な json ではありません)。",
"backup_archive_writing_error": "圧縮アーカイブ '{archive}' にバックアップするファイル '{source}' (アーカイブ '{dest}' で指定) を追加できませんでした",
"backup_ask_for_copying_if_needed": "一時的に{size}MBを使用してバックアップを実行しますか?(この方法は、より効率的な方法で準備できなかったファイルがあるため、この方法が使用されます。",
"backup_cant_mount_uncompress_archive": "非圧縮アーカイブを書き込み保護としてマウントできませんでした",
"backup_cleaning_failed": "一時バックアップフォルダをクリーンアップできませんでした",
"backup_copying_to_organize_the_archive": "アーカイブを整理するために{size}MBをコピーしています",
"backup_couldnt_bind": "{src}を{dest}にバインドできませんでした。",
"backup_create_size_estimation": "アーカイブには約{size}のデータが含まれます。",
"backup_created": "バックアップを作成しました: {name}'",
"backup_creation_failed": "バックアップ作成できませんでした",
"backup_csv_addition_failed": "バックアップするファイルをCSVファイルに追加できませんでした",
"backup_csv_creation_failed": "復元に必要な CSV ファイルを作成できませんでした",
"backup_custom_backup_error": "カスタムバックアップ方法は「バックアップ」ステップを通過できませんでした",
"backup_custom_mount_error": "カスタムバックアップ方法は「マウント」ステップを通過できませんでした",
"backup_delete_error": "{path} を削除する",
"backup_deleted": "バックアップは削除されました: {name}",
"backup_nothings_done": "保存するものがありません",
"backup_output_directory_forbidden": "別の出力ディレクトリを選択します。バックアップは、/bin、/boot、/dev、/etc、/lib、/root、/run、/sbin、/sys、/usr、/var、または/home/yunohost.backup/archives のサブフォルダには作成できません",
"backup_output_directory_not_empty": "空の出力ディレクトリを選択する必要があります",
"backup_output_directory_required": "バックアップ用の出力ディレクトリを指定する必要があります",
"backup_hook_unknown": "バックアップ フック '{hook}' が不明です",
"backup_method_copy_finished": "バックアップコピーがファイナライズされました",
"backup_method_tar_finished": "TARバックアップアーカイブが作成されました",
"backup_output_symlink_dir_broken": "アーカイブディレクトリ '{path}' は壊れたシンボリックリンクです。たぶん、あなたはそれが指す記憶媒体を再/マウントまたは差し込むのを忘れました。",
"backup_mount_archive_for_restore": "復元のためにアーカイブを準備しています...",
"backup_no_uncompress_archive_dir": "そのような圧縮されていないアーカイブディレクトリはありません",
"certmanager_warning_subdomain_dns_record": "サブドメイン '{subdomain}' は '{domain}' と同じ IP アドレスに解決されません。一部の機能は、これを修正して証明書を再生成するまで使用できません。",
"config_action_disabled": "アクション '{action}' は無効になっているため実行できませんでした。制約を満たしていることを確認してください。ヘルプ: {help}",
"backup_permission": "{app}のバックアップ権限",
"backup_running_hooks": "バックアップフックを実行しています...",
"backup_system_part_failed": "「{part}」システム部分をバックアップできませんでした",
"backup_unable_to_organize_files": "簡単な方法を使用してアーカイブ内のファイルを整理できませんでした",
"backup_with_no_backup_script_for_app": "アプリ「{app}」にはバックアップスクリプトがありません。無視。",
"backup_with_no_restore_script_for_app": "{app}には復元スクリプトがないため、このアプリのバックアップを自動的に復元することはできません。",
"certmanager_acme_not_configured_for_domain": "ACMEチャレンジは、nginx confに対応するコードスニペットがないため、現在{domain}実行できません...'yunohost tools regen-conf nginx --dry-run --with-diff' を使用して、nginx の設定が最新であることを確認してください。",
"certmanager_attempt_to_renew_nonLE_cert": "ドメイン '{domain}' の証明書は、Let's Encryptによって発行されていません。自動的に更新できません!",
"certmanager_attempt_to_renew_valid_cert": "ドメイン '{domain}' の証明書の有効期限が近づいていません。(あなたが何をしているのかわかっている場合は、--forceを使用できます)",
"certmanager_cert_renew_failed": "{domains}のLets Encrypt 証明書更新に失敗しました",
"certmanager_cert_renew_success": "{domains}のLets Encrypt 証明書が更新されました",
"certmanager_cert_signing_failed": "新しい証明書に署名できませんでした",
"certmanager_certificate_fetching_or_enabling_failed": "{domain}に新しい証明書を使用しようとしましたが、機能しませんでした...",
"certmanager_domain_cert_not_selfsigned": "ドメイン {domain} の証明書は自己署名されていません。置き換えてよろしいですか(これを行うには '--force' を使用してください)",
"certmanager_hit_rate_limit": "最近{domain}、この正確なドメインのセットに対して既に発行されている証明書が多すぎます。しばらくしてからもう一度お試しください。詳細については、https://letsencrypt.org/docs/rate-limits/ を参照してください。",
"certmanager_no_cert_file": "ドメイン {domain} (ファイル: {file}) の証明書ファイルを読み取れませんでした。",
"certmanager_self_ca_conf_file_not_found": "自己署名機関の設定ファイルが見つかりませんでした(ファイル:{file})",
"config_forbidden_readonly_type": "型 '{type}' は読み取り専用として設定できず、別の型を使用してこの値をレンダリングします (関連する引数 ID: '{id}')。",
"config_no_panel": "設定パネルが見つかりません。",
"config_unknown_filter_key": "フィルター キー '{filter_key}' が正しくありません。",
"config_validate_color": "有効な RGB 16 進色である必要があります",
"config_validate_date": "YYYY-MM-DD の形式のような有効な日付である必要があります。",
"config_validate_email": "有効なメールアドレスである必要があります",
"config_action_failed": "アクション '{action}' の実行に失敗しました: {error}",
"config_apply_failed": "新しい構成の適用に失敗しました: {error}",
"config_cant_set_value_on_section": "構成セクション全体に 1 つの値を設定することはできません。",
"config_forbidden_keyword": "キーワード '{keyword}' は予約されており、この ID の質問を含む設定パネルを作成または使用することはできません。",
"config_validate_time": "HH:MM のような有効な時刻である必要があります",
"config_validate_url": "有効なウェブ URL である必要があります",
"confirm_app_install_danger": "危険!このアプリはまだ実験的であることが知られています(明示的に動作していない場合)!あなたが何をしているのかわからない限り、おそらくそれをインストールしないでください。このアプリが機能しないか、システムを壊した場合、サポートは提供されません...とにかくそのリスクを冒しても構わないと思っているなら、「{answers}」と入力してください",
"confirm_app_install_thirdparty": "危険このアプリはYunoHostのアプリカタログの一部ではありません。サードパーティのアプリをインストールすると、システムの整合性とセキュリティが損なわれる可能性があります。あなたが何をしているのかわからない限り、おそらくそれをインストールしないでください。このアプリが機能しないか、システムを壊した場合、サポートは提供されません...とにかくそのリスクを冒しても構わないと思っているなら、「{answers}」と入力してください",
"confirm_app_install_warning": "警告:このアプリは動作する可能性がありますが、YunoHostにうまく統合されていません。シングル サインオンやバックアップ/復元などの一部の機能は使用できない場合があります。とにかくインストールしますか?[{answers}] ",
"diagnosis_apps_allgood": "インストールされているすべてのアプリは、基本的なパッケージ化プラクティスを尊重します",
"diagnosis_apps_bad_quality": "このアプリケーションは現在、YunoHostのアプリケーションカタログで壊れているとフラグが付けられています。これは、メンテナが問題を修正しようとしている間の一時的な問題である可能性があります。それまでの間、このアプリのアップグレードは無効になります。",
"diagnosis_apps_broken": "このアプリケーションは現在、YunoHostのアプリケーションカタログで壊れているとフラグが付けられています。これは、メンテナが問題を修正しようとしている間の一時的な問題である可能性があります。それまでの間、このアプリのアップグレードは無効になります。",
"diagnosis_apps_deprecated_practices": "このアプリのインストール済みバージョンでは、非常に古い非推奨のパッケージ化プラクティスがまだ使用されています。あなたは本当にそれをアップグレードすることを検討する必要があります。",
"diagnosis_basesystem_hardware": "サーバーのハードウェア アーキテクチャが{virt} {arch}",
"diagnosis_basesystem_hardware_model": "サーバーモデルが{model}",
"diagnosis_apps_issue": "アプリ '{app}' をアップグレードする",
"diagnosis_apps_not_in_app_catalog": "このアプリケーションは、YunoHostのアプリケーションカタログにはありません。過去に存在し、削除された場合は、アップグレードを受け取らず、システムの整合性とセキュリティが損なわれる可能性があるため、このアプリのアンインストールを検討する必要があります。",
"diagnosis_apps_outdated_ynh_requirement": "このアプリのインストール済みバージョンには、yunohost >= 2.xまたは3.xのみが必要であり、推奨されるパッケージングプラクティスとヘルパーが最新ではないことを示す傾向があります。あなたは本当にそれをアップグレードすることを検討する必要があります。",
"diagnosis_backports_in_sources_list": "apt(パッケージマネージャー)はバックポートリポジトリを使用するように構成されているようです。あなたが何をしているのか本当にわからない限り、バックポートからパッケージをインストールすることは、システムに不安定性や競合を引き起こす可能性があるため、強くお勧めしません。",
"diagnosis_basesystem_host": "サーバは Debian {debian_version} を実行しています",
"diagnosis_basesystem_kernel": "サーバーはLinuxカーネル{kernel_version}を実行しています",
"diagnosis_basesystem_ynh_inconsistent_versions": "一貫性のないバージョンのYunoHostパッケージを実行しています...ほとんどの場合、アップグレードの失敗または部分的なことが原因です。",
"diagnosis_basesystem_ynh_main_version": "サーバーがYunoHost{main_version}を実行しています({repo})",
"diagnosis_basesystem_ynh_single_version": "{package}バージョン:{version}({repo})",
"diagnosis_cache_still_valid": "(キャッシュは{category}診断に有効です。まだ再診断しません!",
"diagnosis_description_regenconf": "システム設定",
"diagnosis_description_services": "サービスステータスチェック",
"diagnosis_description_systemresources": "システムリソース",
"diagnosis_description_web": "Web",
"diagnosis_diskusage_low": "ストレージ<code><0></0></code>(デバイス<code><1></1></code>上)には、( )残りの領域({free_percent} )しかありません{free}。{total}注意してください。",
"diagnosis_diskusage_ok": "ストレージ<code><0></0></code>(デバイス<code><1></1></code>上)にはまだ({free_percent}%)スペースが{free}残っています(から{total})!",
"diagnosis_diskusage_verylow": "ストレージ<code><0></0></code>(デバイス<code><1></1></code>上)には、( )残りの領域({free_percent} )しかありません{free}。{total}あなたは本当にいくつかのスペースをきれいにすることを検討する必要があります!",
"diagnosis_display_tip": "見つかった問題を確認するには、ウェブ管理者の診断セクションに移動するか、コマンドラインから「yunohost診断ショー--問題--人間が読める」を実行します。",
"diagnosis_dns_bad_conf": "一部の DNS レコードが見つからないか、ドメイン {domain} (カテゴリ {category}) が正しくない",
"diagnosis_dns_discrepancy": "次の DNS レコードは、推奨される構成に従っていないようです。<br>種類: <code><0></0></code><br>名前: <code><1></1></code><br>現在の値: <code><2></2></code><br>期待値: <code><3></3></code>",
"diagnosis_dns_good_conf": "DNS レコードがドメイン {domain} (カテゴリ {category}) 用に正しく構成されている",
"diagnosis_dns_missing_record": "推奨される DNS 構成に従って、次の情報を含む DNS レコードを追加する必要があります。<br>種類: <code><0></0></code><br>名前: <code><1></1></code><br>価値: <code><2></2></code>",
"diagnosis_dns_point_to_doc": "DNS レコードの構成についてサポートが必要な場合は <a href='https://yunohost.org/dns_config'>、https://yunohost.org/dns_config</a> のドキュメントを確認してください。",
"diagnosis_dns_specialusedomain": "ドメイン {domain} は、.local や .test などの特殊な用途のトップレベル ドメイン (TLD) に基づいているため、実際の DNS レコードを持つことは想定されていません。",
"diagnosis_dns_try_dyndns_update_force": "このドメインのDNS設定は、YunoHostによって自動的に管理されます。そうでない場合は、 <cmd>yunohost dyndns update --force</cmd> を使用して更新を強制することができます。",
"diagnosis_domain_expiration_error": "一部のドメインはすぐに期限切れになります!",
"diagnosis_failed_for_category": "カテゴリ '{category}' の診断に失敗しました: {error}",
"diagnosis_domain_expiration_not_found": "一部のドメインの有効期限を確認できない",
"diagnosis_domain_expiration_not_found_details": "ドメイン{domain}のWHOIS情報に有効期限に関する情報が含まれていないようですね",
"diagnosis_found_errors": "{category}に関連する{errors}重大な問題が見つかりました!",
"diagnosis_domain_expiration_success": "ドメインは登録されており、すぐに期限切れになることはありません。",
"diagnosis_domain_expiration_warning": "一部のドメインはまもなく期限切れになります!",
"diagnosis_domain_expires_in": "{domain} の有効期限は {days}日です。",
"diagnosis_found_errors_and_warnings": "{category}に関連する重大な問題が{errors}(および{warnings}の警告)見つかりました!",
"diagnosis_found_warnings": "{category}{warnings}改善できるアイテムが見つかりました。",
"diagnosis_domain_not_found_details": "ドメイン{domain}がWHOISデータベースに存在しないか、有効期限が切れています",
"diagnosis_everything_ok": "{category}はすべて大丈夫そうです!",
"diagnosis_failed": "カテゴリ '{category}' の診断結果を取得できませんでした: {error}",
"diagnosis_http_connection_error": "接続エラー: 要求されたドメインに接続できませんでした。到達できない可能性が非常に高いです。",
"diagnosis_http_could_not_diagnose": "ドメインが IPv{ipversion} の外部から到達可能かどうかを診断できませんでした。",
"diagnosis_http_could_not_diagnose_details": "エラー: {error}",
"diagnosis_http_hairpinning_issue": "ローカルネットワークでヘアピニングが有効になっていないようです。",
"diagnosis_http_nginx_conf_not_up_to_date": "このドメインのnginx設定は手動で変更されたようで、YunoHostがHTTPで到達可能かどうかを診断できません。",
"diagnosis_http_nginx_conf_not_up_to_date_details": "状況を修正するには、コマンドラインからの違いを調べて、 <cmd>yunohostツールregen-conf nginx --dry-run --with-diff</cmd> を使用し、問題がない場合は、 <cmd>yunohostツールregen-conf nginx --force</cmd>で変更を適用します。",
"diagnosis_http_ok": "ドメイン {domain} は、ローカル ネットワークの外部から HTTP 経由で到達できます。",
"diagnosis_http_partially_unreachable": "ドメイン {domain} は、IPv{passed} では機能しますが、IPv{failed} ではローカル ネットワークの外部から HTTP 経由で到達できないように見えます。",
"diagnosis_http_special_use_tld": "ドメイン {domain} は、.local や .test などの特殊な用途のトップレベル ドメイン (TLD) に基づいているため、ローカル ネットワークの外部に公開されることは想定されていません。",
"diagnosis_http_timeout": "外部からサーバーに接続しようとしているときにタイムアウトしました。到達できないようです。<br>1.この問題の最も一般的な原因は、ポート80(および443)が <a href='https://yunohost.org/isp_box_config'>サーバーに正しく転送されていない</a>ことです。<br>2. サービスnginxが実行されていることも確認する必要があります<br>3.より複雑なセットアップでは、ファイアウォールまたはリバースプロキシが干渉していないことを確認します。",
"diagnosis_http_unreachable": "ドメイン {domain} は、ローカル ネットワークの外部から HTTP 経由で到達できないように見えます。",
"diagnosis_ip_broken_dnsresolution": "ドメイン名の解決が何らかの理由で壊れているようです...ファイアウォールはDNSリクエストをブロックしていますか?",
"diagnosis_ip_broken_resolvconf": "ドメインの名前解決がサーバー上で壊れているようですが、これは<code>/etc/resolv.conf</code>で<code>127.0.0.1</code>を指定していないことに関連しているようです。",
"diagnosis_ip_connected_ipv4": "サーバーはIPv4経由でインターネットに接続されています!",
"diagnosis_ip_connected_ipv6": "サーバーはIPv6経由でインターネットに接続されています!",
"diagnosis_ip_global": "グローバルIP: <code>{global}</code>",
"diagnosis_ip_local": "ローカル IP: <code>{local}</code>",
"diagnosis_ip_no_ipv4": "サーバーに機能している IPv4 がありません。",
"diagnosis_ip_no_ipv6": "サーバーに機能している IPv6 がありません。",
"diagnosis_ip_no_ipv6_tip": "IPv6を機能させることは、サーバーが機能するために必須ではありませんが、インターネット全体の健全性にとってはより良いことです。IPv6 は通常、システムまたはプロバイダー (使用可能な場合) によって自動的に構成されます。それ以外の場合は、こちらのドキュメントで説明されているように、いくつかのことを手動で構成する必要があります。 <a href='https://yunohost.org/#/ipv6'>https://yunohost.org/#/ipv6</a>。IPv6を有効にできない場合、または技術的に難しすぎると思われる場合は、この警告を無視しても問題ありません。",
"diagnosis_mail_blacklist_reason": "ブラックリストの登録理由は次のとおりです: {reason}",
"diagnosis_mail_blacklist_website": "リストされている理由を特定して修正した後、IPまたはドメインを削除するように依頼してください: {blacklist_website}",
"diagnosis_mail_ehlo_bad_answer": "SMTP 以外のサービスが IPv{ipversion} のポート 25 で応答しました",
"diagnosis_mail_ehlo_bad_answer_details": "あなたのサーバーの代わりに別のマシンが応答していることが原因である可能性があります。",
"diagnosis_mail_ehlo_could_not_diagnose": "メール サーバ(postfix)が IPv{ipversion} の外部から到達可能かどうかを診断できませんでした。",
"diagnosis_mail_ehlo_ok": "SMTPメールサーバーは外部から到達可能であるため、電子メールを受信できます!",
"diagnosis_mail_ehlo_unreachable": "SMTP メール サーバは、IPv{ipversion} の外部から到達できません。メールを受信できません。",
"diagnosis_mail_ehlo_unreachable_details": "ポート 25 で IPv{ipversion} のサーバーへの接続を開くことができませんでした。到達できないようです。<br>1.この問題の最も一般的な原因は、ポート25 <a href='https://yunohost.org/isp_box_config'>がサーバーに正しく転送されていない</a>ことです。<br>2. また、サービス接尾辞が実行されていることも確認する必要があります。<br>3.より複雑なセットアップでは、ファイアウォールまたはリバースプロキシが干渉していないことを確認します。",
"diagnosis_mail_ehlo_wrong": "別の SMTP メール サーバーが IPv{ipversion} で応答します。サーバーはおそらく電子メールを受信できないでしょう。",
"diagnosis_mail_ehlo_wrong_details": "リモート診断ツールが IPv{ipversion} で受信した EHLO は、サーバーのドメインとは異なります。<br>受信したEHLO: <code><1></1></code><br>期待: <code><2></2></code><br>この問題の最も一般的な原因は、ポート 25 が <a href='https://yunohost.org/isp_box_config'>サーバーに正しく転送されていない</a>ことです。または、ファイアウォールまたはリバースプロキシが干渉していないことを確認します。",
"diagnosis_mail_fcrdns_different_from_ehlo_domain": "逆引き DNS が IPv{ipversion} 用に正しく構成されていません。一部のメールは配信されないか、スパムとしてフラグが立てられる場合があります。",
"diagnosis_mail_fcrdns_different_from_ehlo_domain_details": "現在の逆引きDNS: <code><0></0></code><br>期待値: <code><1></1></code>",
"diagnosis_mail_fcrdns_dns_missing": "IPv{ipversion} では逆引き DNS は定義されていません。一部のメールは配信されないか、スパムとしてフラグが立てられる場合があります。",
"diagnosis_mail_fcrdns_nok_alternatives_6": "一部のプロバイダーでは、逆引きDNSを構成できません(または機能が壊れている可能性があります...)。逆引きDNSがIPv4用に正しく設定されている場合は、 <cmd>yunohost設定email.smtp.smtp_allow_ipv6-vオフに設定</cmd>して、メールを送信するときにIPv6の使用を無効にしてみてください。注:この最後の解決策は、そこにあるいくつかのIPv6専用サーバーから電子メールを送受信できないことを意味します。",
"diagnosis_mail_fcrdns_nok_details": "まず、インターネットルーターインターフェイスまたはホスティングプロバイダーインターフェイスで <code><0></0></code> 逆引きDNSを構成してみてください。(一部のホスティングプロバイダーでは、このためのサポートチケットを送信する必要がある場合があります)。",
"diagnosis_mail_outgoing_port_25_blocked": "送信ポート 25 が IPv{ipversion} でブロックされているため、SMTP メール サーバーは他のサーバーに電子メールを送信できません。",
"diagnosis_mail_outgoing_port_25_blocked_details": "まず、インターネットルーターインターフェイスまたはホスティングプロバイダーインターフェイスの送信ポート25のブロックを解除する必要があります。(一部のホスティングプロバイダーでは、このために問い合わせを行う必要がある場合があります)。",
"diagnosis_never_ran_yet": "このサーバーは最近セットアップされたようで、表示する診断レポートはまだありません。Web管理画面またはコマンドラインから yunohost diagnosis run を実行して、完全な診断を実行することから始める必要があります。",
"diagnosis_package_installed_from_sury": "一部のシステムパッケージはダウングレードする必要があります",
"diagnosis_processes_killed_by_oom_reaper": "一部のプロセスは、メモリが不足したため、最近システムによって強制終了されました。これは通常、システム上のメモリ不足、またはプロセスがメモリを消費しすぎていることを示しています。強制終了されたプロセスの概要:\n{kills_summary}",
"diagnosis_ram_low": "システムには{available}({available_percent}%)の使用可能なRAMがあります({total}のうち)。注意してください。",
"diagnosis_package_installed_from_sury_details": "一部のパッケージは、Suryと呼ばれるサードパーティのリポジトリから誤ってインストールされました。YunoHostチームはこれらのパッケージを処理する戦略を改善しましたが、Stretchを使用している間にPHP7.3アプリをインストールした一部のセットアップには、いくつかの矛盾が残っていると予想されます。この状況を修正するには、次のコマンドを実行してみてください。 <cmd>{cmd_to_fix}</cmd>",
"diagnosis_ports_could_not_diagnose": "IPv{ipversion} で外部からポートに到達できるかどうかを診断できませんでした。",
"diagnosis_ports_could_not_diagnose_details": "エラー: {error}",
"diagnosis_ports_unreachable": "ポート {port} は外部から到達できません。",
"diagnosis_regenconf_allgood": "すべての構成ファイルは、推奨される構成と一致しています!",
"diagnosis_regenconf_manually_modified": "<code>{file}</code> 構成ファイルが手動で変更されたようです。",
"diagnosis_regenconf_manually_modified_details": "あなたが何をしているのかを知っていれば、これはおそらく大丈夫です!YunoHostはこのファイルの自動更新を停止します... ただし、YunoHostのアップグレードには重要な推奨変更が含まれている可能性があることに注意してください。必要に応じて、<cmd>yunohost tools regen-conf {category} --dry-run --with-diff</cmd>で違いを調べ、<cmd>yunohost tools regen-conf {category} --force</cmd>を使用して推奨構成に強制的にリセットすることができます",
"diagnosis_rootfstotalspace_critical": "ルートファイルシステムには合計{space}しかありませんが、これは非常に心配な値ですディスク容量がすぐに枯渇する可能性があります。ルートファイルシステム用には少なくとも16GBを用意することをお勧めします。",
"diagnosis_ram_ok": "システムには、{total}のうち{available} ({available_percent}%) の RAM がまだ使用可能です。",
"diagnosis_ram_verylow": "システムには{available}({available_percent}%)のRAMしか使用できません。({total}のうち)",
"diagnosis_rootfstotalspace_warning": "ルートファイルシステムには合計{space}しかありません。これは問題ないかもしれませんが、最終的にはディスク容量がすぐに枯渇する可能性があるため、注意してください... ルートファイルシステム用に少なくとも16GBを用意することをお勧めします。",
"diagnosis_security_vulnerable_to_meltdown_details": "これを修正するには、システムをアップグレードして再起動し、新しいLinuxカーネルをロードする必要があります(または、これが機能しない場合はサーバープロバイダーに連絡してください)。詳細については、https://meltdownattack.com/ を参照してください。",
"diagnosis_services_bad_status": "サービス{service} のステータスは {status} です :(",
"diagnosis_services_bad_status_tip": "サービスの再起動を試みることができ、それが機能しない場合は、<a href='#/services/{service}'>webadminの</a>サービスログを確認してください(コマンドラインから、yunohost<cmd>サービスの再起動{service}とyunohost</cmd><cmd>サービスログ{service}</cmd>を使用してこれを行うことができます)。<a href='#/services/{service}'></a>。",
"diagnosis_sshd_config_inconsistent_details": "<cmd>security.ssh.ssh_port -v YOUR_SSH_PORT に設定された yunohost 設定</cmd>を実行して SSH ポートを定義し、yunohost tools regen-conf ssh --<cmd>dry-run --with-diff および yunohost tools regen-conf ssh --</cmd>force をチェックして、会議を <cmd>YunoHost</cmd> の推奨事項にリセットしてください。",
"diagnosis_sshd_config_insecure": "SSH構成は手動で変更されたようで、許可されたユーザーへのアクセスを制限するための「許可グループ」または「許可ユーザー」ディレクティブが含まれていないため、安全ではありません。",
"diagnosis_swap_tip": "サーバーがSDカードまたはSSDストレージでスワップをホストしている場合、デバイスの平均寿命が大幅に短くなる可能性があることに注意してください。",
"diagnosis_unknown_categories": "次のカテゴリは不明です: {categories}",
"diagnosis_using_stable_codename": "<cmd>apt</cmd> (システムのパッケージマネージャ) は現在、現在の Debian バージョン (bullseye) のコードネームではなく、コードネーム 'stable' からパッケージをインストールするように設定されています。",
"disk_space_not_sufficient_install": "このアプリケーションをインストールするのに十分なディスク領域が残っていません",
"diagnosis_using_stable_codename_details": "これは通常、ホスティングプロバイダーからの構成が正しくないことが原因です。なぜなら、Debian の次のバージョンが新しい「安定版」になるとすぐに、<cmd>apt</cmd> は適切な移行手順を経ずにすべてのシステムパッケージをアップグレードしたくなるからです。ベース Debian リポジトリの apt ソースを編集してこれを修正し、<cmd>安定版</cmd>キーワードを <cmd>bullseye</cmd> に置き換えることをお勧めします。対応する設定ファイルは /etc/apt/sources.list、または /<cmd>etc/apt/sources.list.d/</cmd> 内のファイルでなければなりません。<cmd></cmd>",
"diagnosis_using_yunohost_testing": "<cmd>apt</cmd> (システムのパッケージマネージャー)は現在、YunoHostコアの「テスト」アップグレードをインストールするように構成されています。",
"diagnosis_using_yunohost_testing_details": "自分が何をしているのかを知っていれば、これはおそらく問題ありませんが、YunoHostのアップグレードをインストールする前にリリースートに注意してください!「テスト版」のアップグレードを無効にしたい場合は、/<cmd>etc/apt/sources.list.d/yunohost.list</cmd> から <cmd>testing</cmd> キーワードを削除する必要があります。",
"disk_space_not_sufficient_update": "このアプリケーションを更新するのに十分なディスク領域が残っていません",
"domain_cannot_add_muc_upload": "「muc.」で始まるドメインを追加することはできません。この種の名前は、YunoHostに統合されたXMPPマルチユーザーチャット機能のために予約されています。",
"domain_cannot_add_xmpp_upload": "「xmpp-upload」で始まるドメインを追加することはできません。この種の名前は、YunoHostに統合されたXMPPアップロード機能のために予約されています。",
"domain_cannot_remove_main": "'{domain}'はメインドメインなので削除できないので、まず「yunohost domain main-domain -n」を使用して別のドメインをメインドメインとして設定する必要があります。 候補 <another-domain>ドメインのリストは次のとおりです。 {other_domains}</another-domain>",
"domain_config_api_protocol": "API プロトコル",
"domain_cannot_remove_main_add_new_one": "「{domain}」はメインドメインであり唯一のドメインであるため、最初に「yunohostドメイン追加<another-domain.com>」を使用して別のドメインを追加し、次に「yunohostドメインメインドメイン-n <another-domain.com>」を使用してメインドメインとして設定し、「yunohostドメイン削除{domain}」を使用してドメイン「{domain}」を削除する必要があります。",
"domain_config_acme_eligible_explain": "このドメインは、Let's Encrypt証明書の準備ができていないようです。DNS 構成と HTTP サーバーの到達可能性を確認してください。 <a href='#/diagnosis'>診断ページの</a> 「DNSレコード」と「Web」セクションは、何が誤って構成されているかを理解するのに役立ちます。",
"domain_config_auth_application_key": "アプリケーションキー",
"domain_config_auth_application_secret": "アプリケーション秘密鍵",
"domain_config_auth_consumer_key": "消費者キー",
"domain_config_auth_entrypoint": "API エントリ ポイント",
"domain_config_default_app": "デフォルトのアプリ",
"domain_config_default_app_help": "このドメインを開くと、ユーザーは自動的にこのアプリにリダイレクトされます。アプリが指定されていない場合、ユーザーはユーザーポータルのログインフォームにリダイレクトされます。",
"domain_config_mail_in": "受信メール",
"domain_config_auth_key": "認証キー",
"domain_config_auth_secret": "認証シークレット",
"domain_config_auth_token": "認証トークン",
"domain_config_cert_install": "Let's Encrypt証明書をインストールする",
"domain_config_cert_issuer": "証明機関",
"domain_config_cert_no_checks": "診断チェックを無視する",
"domain_config_cert_renew": "Lets Encrypt証明書を更新する",
"domain_config_cert_renew_help": "証明書は、有効期間の最後の 15 日間に自動的に更新されます。必要に応じて手動で更新できます(推奨されません)。",
"domain_config_cert_summary_letsencrypt": "やった有効なLet's Encrypt証明書を使用しています",
"domain_config_cert_summary_ok": "さて、現在の証明書は良さそうです!",
"domain_config_cert_summary_selfsigned": "警告: 現在の証明書は自己署名です。ブラウザは新しい訪問者に不気味な警告を表示します!",
"domain_config_mail_out": "送信メール",
"domain_config_xmpp_help": "注意: 一部のXMPP機能では、DNSレコードを更新し、Lets Encrypt 証明書を再生成して有効にする必要があります",
"domain_created": "作成されたドメイン",
"domain_creation_failed": "ドメイン {domain}を作成できません: {error}",
"domain_deleted": "ドメインが削除されました",
"domain_deletion_failed": "ドメイン {domain}を削除できません: {error}",
"domain_dns_push_failed_to_authenticate": "ドメイン '{domain}' のレジストラーの API で認証に失敗しました。おそらく資格情報が正しくないようです?(エラー: {error})",
"domain_dns_push_failed_to_list": "レジストラの API を使用して現在のレコードを一覧表示できませんでした: {error}",
"domain_dns_push_not_applicable": "自動 DNS 構成機能は、ドメイン {domain}には適用されません。https://yunohost.org/dns_config のドキュメントに従って、DNS レコードを手動で構成する必要があります。",
"domain_dns_push_managed_in_parent_domain": "自動 DNS 構成機能は、親ドメイン {parent_domain}で管理されます。",
"domain_dns_push_partial_failure": "DNS レコードが部分的に更新されました: いくつかの警告/エラーが報告されました。",
"domain_dns_push_record_failed": "{action} {type}/{name} の記録に失敗しました: {error}",
"domain_dns_push_success": "DNS レコードが更新されました!",
"domain_dns_pushing": "DNS レコードをプッシュしています...",
"domain_dns_registrar_experimental": "これまでのところ、**{registrar}**のAPIとのインターフェースは、YunoHostコミュニティによって適切にテストおよびレビューされていません。サポートは**非常に実験的**です-注意してください!",
"domain_dns_registrar_managed_in_parent_domain": "このドメインは{parent_domain_link}のサブドメインです。DNS レジストラーの構成は、{parent_domain}の設定パネルで管理する必要があります。",
"domain_dns_registrar_not_supported": "YunoHost は、このドメインを処理するレジストラを自動的に検出できませんでした。DNS レコードは、https://yunohost.org/dns のドキュメントに従って手動で構成する必要があります。",
"domain_dns_registrar_supported": "YunoHost は、このドメインがレジストラ**{registrar}**によって処理されていることを自動的に検出しました。必要に応じて、適切なAPI資格情報を提供すると、YunoHostはこのDNSゾーンを自動的に構成します。API 資格情報の取得方法に関するドキュメントは、https://yunohost.org/registar_api_{registrar} ページにあります。(https://yunohost.org/dns のドキュメントに従ってDNSレコードを手動で構成することもできます)",
"domain_dns_registrar_yunohost": "このドメインは nohost.me / nohost.st / ynh.fr であるため、そのDNS構成は、それ以上の構成なしでYunoHostによって自動的に処理されます。(「YunoHost Dyndns Update」コマンドを参照)",
"domain_dyndns_root_unknown": "'{domain}' ドメインのルートを '{name}' にリダイレクト",
"domain_exists": "この名前のバックアップアーカイブはすでに存在します。",
"domain_hostname_failed": "新しいホスト名を設定できません。これにより、後で問題が発生する可能性があります(問題ない可能性があります)。",
"domain_registrar_is_not_configured": "レジストラーは、ドメイン {domain} 用にまだ構成されていません。",
"domain_remove_confirm_apps_removal": "このドメインを削除すると、これらのアプリケーションが削除されます。\n{apps}\n\nよろしいですか?[{answers}]",
"domain_uninstall_app_first": "これらのアプリケーションは、ドメインに引き続きインストールされます。\n{apps}\n\nドメインの削除に進む前に、「yunohostアプリ削除the_app_id」を使用してアンインストールするか、「yunohostアプリ変更URL the_app_id」を使用して別のドメインに移動してください。",
"domain_unknown": "ドメイン {domain}を作成できません: {error}",
"domains_available": "ドメイン管理",
"done": "完了",
"downloading": "ダウンロード中...",
"dpkg_is_broken": "dpkg / APT(システムパッケージマネージャー)が壊れた状態にあるように見えるため、現在はこれを行うことができません...SSH経由で接続し、 'sudo apt install --fix-broken'および/または 'sudo dpkg --configure -a'および/または 'sudo dpkg --audit'を実行することで、この問題を解決しようとすることができます。",
"dpkg_lock_not_available": "別のプログラムがdpkg(システムパッケージマネージャー)のロックを使用しているように見えるため、このコマンドは現在実行できません",
"dyndns_could_not_check_available": "{domain}{provider}で利用できるかどうかを確認できませんでした。",
"dyndns_ip_update_failed": "IP アドレスを DynDNS に更新できませんでした",
"dyndns_ip_updated": "DynDNSでIPを更新しました",
"dyndns_no_domain_registered": "このカテゴリーにログが登録されていません",
"dyndns_provider_unreachable": "DynDNSプロバイダー{provider}に到達できません:YunoHostがインターネットに正しく接続されていないか、ダイネットサーバーがダウンしています。",
"dyndns_registered": "このカテゴリーにログが登録されていません",
"dyndns_registration_failed": "DynDNS ドメインを登録できませんでした: {error}",
"dyndns_unavailable": "ドメイン {domain}を作成できません: {error}",
"dyndns_domain_not_provided": "DynDNS プロバイダー{provider}ドメイン{domain}を提供できません。",
"extracting": "抽出。。。",
"field_invalid": "フィールドは必要です。",
"file_does_not_exist": "ファイル {path}が存在しません。",
"firewall_reloaded": "ファイアウォールがリロードされました",
"firewall_rules_cmd_failed": "一部のファイアウォール規則コマンドが失敗しました。ログの詳細情報。",
"global_settings_reset_success": "グローバルIP: <code>{global}</code>",
"global_settings_setting_admin_strength": "管理者パスワードの強度要件",
"global_settings_setting_admin_strength_help": "これらの要件は、パスワードを初期化または変更する場合にのみ適用されます",
"global_settings_setting_backup_compress_tar_archives": "バックアップの圧縮",
"global_settings_setting_backup_compress_tar_archives_help": "新しいバックアップを作成するときは、圧縮されていないアーカイブ (.tar) ではなく、アーカイブを圧縮 (.tar.gz) します。注意:このオプションを有効にすると、バックアップアーカイブの作成が軽くなりますが、最初のバックアップ手順が大幅に長くなり、CPUに負担がかかります。",
"global_settings_setting_dns_exposure": "DNS の構成と診断で考慮すべき IP バージョン",
"global_settings_setting_dns_exposure_help": "注意:これは、推奨されるDNS構成と診断チェックにのみ影響します。これはシステム構成には影響しません。",
"global_settings_setting_nginx_compatibility": "NGINXの互換性",
"global_settings_setting_nginx_compatibility_help": "WebサーバーNGINXの互換性とセキュリティのトレードオフ。暗号(およびその他のセキュリティ関連の側面)に影響します",
"global_settings_setting_nginx_redirect_to_https": "HTTPSを強制",
"global_settings_setting_nginx_redirect_to_https_help": "デフォルトでHTTPリクエストをHTTPにリダイレクトします(あなたが何をしているのか本当にわからない限り、オフにしないでください!",
"global_settings_setting_passwordless_sudo": "管理者がパスワードを再入力せずに「sudo」を使用できるようにする",
"global_settings_setting_portal_theme_help": "カスタム ポータル テーマの作成の詳細については、https://yunohost.org/theming を参照してください。",
"global_settings_setting_postfix_compatibility": "後置の互換性",
"global_settings_setting_pop3_enabled": "POP3 を有効にする",
"global_settings_setting_pop3_enabled_help": "メール サーバーの POP3 プロトコルを有効にする",
"global_settings_setting_portal_theme": "ユーザーポータルでタイルに表示する",
"global_settings_setting_root_access_explain": "Linux システムでは、「ルート」が絶対管理者です。YunoHost のコンテキストでは、サーバーのローカルネットワークからを除き、直接の「ルート」SSH ログインはデフォルトで無効になっています。'admins' グループのメンバーは、sudo コマンドを使用して、コマンドラインから root として動作できます。ただし、何らかの理由で通常の管理者がログインできなくなった場合に、システムをデバッグするための(堅牢な)rootパスワードがあると便利です。",
"global_settings_setting_security_experimental_enabled": "実験的なセキュリティ機能",
"global_settings_setting_security_experimental_enabled_help": "実験的なセキュリティ機能を有効にします(何をしているのかわからない場合は有効にしないでください)。",
"global_settings_setting_smtp_allow_ipv6_help": "IPv6 を使用したメールの送受信を許可する",
"global_settings_setting_smtp_relay_enabled": "SMTP リレーを有効にする",
"global_settings_setting_smtp_relay_enabled_help": "この yunohost インスタンスの代わりにメールを送信するために使用する SMTP リレーを有効にします。このような状況のいずれかにある場合に便利です:25ポートがISPまたはVPSプロバイダーによってブロックされている、DUHLにリストされている住宅用IPがある、逆引きDNSを構成できない、またはこのサーバーがインターネットに直接公開されておらず、他のものを使用してメールを送信したい。",
"global_settings_setting_smtp_relay_host": "SMTP リレー ホスト",
"global_settings_setting_smtp_relay_password": "SMTP リレー パスワード",
"global_settings_setting_smtp_relay_port": "SMTP リレー ポート",
"global_settings_setting_smtp_relay_user": "SMTP リレー ユーザー",
"global_settings_setting_ssh_compatibility": "SSH の互換性",
"global_settings_setting_ssh_compatibility_help": "SSHサーバーの互換性とセキュリティのトレードオフ。暗号(およびその他のセキュリティ関連の側面)に影響します。詳細については、https://infosec.mozilla.org/guidelines/openssh を参照してください。",
"global_settings_setting_ssh_password_authentication": "パスワード認証",
"global_settings_setting_ssh_password_authentication_help": "SSH のパスワード認証を許可する",
"global_settings_setting_ssh_port": "SSH ポート",
"global_settings_setting_ssowat_panel_overlay_enabled": "アプリで小さな「YunoHost」ポータルショートカットの正方形を有効にします",
"global_settings_setting_user_strength": "ユーザー パスワードの強度要件",
"global_settings_setting_webadmin_allowlist_help": "ウェブ管理者へのアクセスを許可されたIPアドレス。",
"global_settings_setting_webadmin_allowlist": "ウェブ管理者 IP 許可リスト",
"global_settings_setting_webadmin_allowlist_enabled": "ウェブ管理 IP 許可リストを有効にする",
"global_settings_setting_webadmin_allowlist_enabled_help": "一部の IP のみにウェブ管理者へのアクセスを許可します。",
"good_practices_about_admin_password": "次に、新しい管理パスワードを定義しようとしています。パスワードは8文字以上である必要がありますが、より長いパスワード(パスフレーズなど)を使用したり、さまざまな文字(大文字、小文字、数字、特殊文字)を使用したりすることをお勧めします。",
"good_practices_about_user_password": "次に、新しいユーザー・パスワードを定義しようとしています。パスワードは少なくとも8文字の長さである必要がありますが、より長いパスワード(パスフレーズなど)や、さまざまな文字(大文字、小文字、数字、特殊文字)を使用することをお勧めします。",
"group_already_exist": "グループ {group} は既に存在します",
"group_already_exist_on_system": "グループ {group} はシステム グループに既に存在します。",
"group_already_exist_on_system_but_removing_it": "グループ{group}はすでにシステムグループに存在しますが、YunoHostはそれを削除します...",
"group_cannot_edit_all_users": "グループ 'all_users' は手動で編集できません。これは、YunoHostに登録されているすべてのユーザーを含むことを目的とした特別なグループです",
"invalid_shell": "無効なシェル: {shell}",
"ip6tables_unavailable": "ここではip6tablesを使うことはできません。あなたはコンテナ内にいるか、カーネルがサポートしていません",
"group_cannot_edit_primary_group": "グループ '{group}' を手動で編集することはできません。これは、特定のユーザーを 1 人だけ含むためのプライマリ グループです。",
"group_cannot_edit_visitors": "グループの「訪問者」を手動で編集することはできません。匿名の訪問者を代表する特別なグループです",
"group_creation_failed": "グループ '{group}' を作成できませんでした: {error}",
"group_deleted": "グループ '{group}' が削除されました",
"group_deletion_failed": "グループ '{group}' を削除できませんでした: {error}",
"group_update_aliases": "グループ '{group}' のエイリアスの更新",
"group_update_failed": "グループ '{group}' を更新できませんでした: {error}",
"group_updated": "グループ '{group}' が更新されました",
"group_user_add": "ユーザー '{user}' がグループ '{group}' に追加されます。",
"hook_json_return_error": "フック{path}からリターンを読み取れませんでした。エラー: {msg}. 生のコンテンツ: {raw_content}",
"hook_list_by_invalid": "このプロパティは、フックを一覧表示するために使用することはできません",
"hook_name_unknown": "不明なフック名 '{name}'",
"installation_complete": "インストールが完了しました",
"invalid_credentials": "無効なパスワードまたはユーザー名",
"invalid_number": "数値にする必要があります",
"invalid_number_max": "{max}より小さくする必要があります",
"invalid_number_min": "{min}より大きい値にする必要があります",
"invalid_regex": "無効な正規表現: '{regex}'",
"iptables_unavailable": "ここではiptablesを使うことはできません。あなたはコンテナ内にいるか、カーネルがサポートしていません",
"ldap_attribute_already_exists": "LDAP 属性 '{attribute}' は、値 '{value}' で既に存在します。",
"ldap_server_down": "LDAP サーバーに到達できません",
"ldap_server_is_down_restart_it": "LDAP サービスがダウンしています。再起動を試みます...",
"log_app_action_run": "{} アプリのアクションの実行",
"log_app_change_url": "{} アプリのアクセスURLを変更",
"log_app_config_set": "{} アプリに設定を適用する",
"log_app_makedefault": "{} をデフォルトのアプリにする",
"log_app_remove": "「{}」アプリを削除する",
"log_app_upgrade": "「{}」アプリをアップグレードする",
"log_available_on_yunopaste": "このログは、{url}",
"log_backup_create": "バックアップアーカイブを作成する",
"log_backup_restore_app": "バックアップを復元する {name}",
"log_backup_restore_system": "収集したファイルからバックアップアーカイブを作成しています...",
"log_corrupted_md_file": "ログに関連付けられている YAML メタデータ ファイルが破損しています: '{md_file}\nエラー: {error}'",
"log_does_exists": "「{log}」という名前の操作ログはありません。「yunohostログリスト」を使用して、利用可能なすべての操作ログを表示します",
"log_domain_add": "ドメイン {name} を追加する",
"log_domain_config_set": "ドメイン '{}' の構成を更新する",
"log_domain_dns_push": "{name} DNSレコードを登録する",
"log_domain_main_domain": "「{}」をメインドメインにする",
"log_domain_remove": "システム構成から「{}」ドメインを削除する",
"log_dyndns_subscribe": "YunoHostコアのアップグレードを開始しています...",
"log_dyndns_update": "YunoHostサブドメイン「{}」に関連付けられているIPを更新します",
"log_help_to_get_failed_log": "操作 '{desc}' を完了できませんでした。ヘルプを取得するには、「yunohostログ共有{name}」コマンドを使用してこの操作の完全なログを共有してください",
"log_help_to_get_log": "操作「{desc}」のログを表示するには、「yunohostログショー{name}」コマンドを使用します。",
"log_letsencrypt_cert_install": "「{}」ドメインにLet's Encrypt証明書をインストールする",
"log_letsencrypt_cert_renew": "Lets Encrypt証明書を更新する",
"log_link_to_failed_log": "操作 '{desc}' を完了できませんでした。ヘルプを取得するには、 <a href=\"#/tools/logs/{name}\">ここをクリックして</a> この操作の完全なログを提供してください",
"log_link_to_log": "この操作の完全なログ: ''<a href=\"#/tools/logs/{name}\" style=\"text-decoration:underline\">{desc}</a>",
"log_operation_unit_unclosed_properly": "操作ユニットが正しく閉じられていません",
"log_permission_create": "作成権限 '{}'",
"log_permission_delete": "削除権限 '{}'",
"log_permission_url": "権限 '{}' に関連する URL を更新する",
"log_regen_conf": "システム設定",
"log_remove_on_failed_install": "インストールに失敗した後に「{}」を削除します",
"log_resource_snippet": "リソースのプロビジョニング/プロビジョニング解除/更新",
"log_selfsigned_cert_install": "「{}」ドメインに自己署名証明書をインストールする",
"log_user_create": "「{}」ユーザーを追加する",
"log_user_delete": "「{}」ユーザーの削除",
"log_user_group_create": "「{}」グループの作成",
"log_settings_reset": "設定をリセット",
"log_settings_reset_all": "すべての設定をリセット",
"log_settings_set": "設定を適用",
"log_tools_migrations_migrate_forward": "移行を実行する",
"log_tools_postinstall": "YunoHostサーバーをポストインストールします",
"log_tools_reboot": "サーバーを再起動",
"log_tools_shutdown": "サーバーをシャットダウン",
"log_tools_upgrade": "システムパッケージのアップグレード",
"log_user_group_delete": "「{}」グループの削除",
"log_user_group_update": "'{}' グループを更新",
"log_user_import": "ユーザーのインポート",
"mailbox_used_space_dovecot_down": "使用済みメールボックススペースをフェッチする場合は、Dovecotメールボックスサービスが稼働している必要があります",
"log_user_permission_reset": "アクセス許可 '{}' をリセットします",
"mailbox_disabled": "ユーザーの{user}に対して電子メールがオフになっている",
"main_domain_change_failed": "メインドメインを変更できません",
"main_domain_changed": "メインドメインが変更されました",
"migration_0021_cleaning_up": "キャッシュとパッケージのクリーンアップはもう役に立たなくなりました...",
"migration_0021_general_warning": "この移行はデリケートな操作であることに注意してください。YunoHostチームはそれをレビューしてテストするために最善を尽くしましたが、移行によってシステムまたはそのアプリの一部が破損する可能性があります。\n\nしたがって、次のことをお勧めします。\n - 重要なデータやアプリのバックアップを実行します。関する詳細情報: https://yunohost.org/backup\n - 移行を開始した後はしばらくお待ちください: インターネット接続とハードウェアによっては、すべてがアップグレードされるまでに最大数時間かかる場合があります。",
"migration_0021_main_upgrade": "メインアップグレードを開始しています...",
"migration_0021_not_enough_free_space": "/var/の空き容量はかなり少ないです!この移行を実行するには、少なくとも 1 GB の空き容量が必要です。",
"migration_0021_modified_files": "次のファイルは手動で変更されていることが判明し、アップグレード後に上書きされる可能性があることに注意してください: {manually_modified_files}",
"migration_0021_not_buster2": "現在の Debian ディストリビューションは Buster ではありません!すでにBuster->Bullseyeの移行を実行している場合、このエラーは移行手順が100% s成功しなかったという事実の兆候です(そうでなければ、YunoHostは完了のフラグを立てます)。Webadminのツール>ログにある移行の**完全な**ログを必要とするサポートチームで何が起こったのかを調査することをお勧めします。",
"migration_0021_patch_yunohost_conflicts": "競合の問題を回避するためにパッチを適用しています...",
"migration_0021_patching_sources_list": "sources.listsにパッチを適用しています...",
"migration_0021_problematic_apps_warning": "以下の問題のあるインストール済みアプリが検出されました。これらはYunoHostアプリカタログからインストールされていないか、「working」としてフラグが立てられていないようです。したがって、アップグレード後も動作することを保証することはできません: {problematic_apps}",
"migration_0021_still_on_buster_after_main_upgrade": "メインのアップグレード中に問題が発生しましたが、システムはまだDebian Busterです",
"migration_0021_system_not_fully_up_to_date": "システムが完全に最新ではありません。Bullseyeへの移行を実行する前に、まずは通常のアップグレードを実行してください。",
"migration_0023_not_enough_space": "移行を実行するのに十分な領域を {path} で使用できるようにします。",
"migration_0023_postgresql_11_not_installed": "PostgreSQL がシステムにインストールされていません。何もすることはありません。",
"migration_0023_postgresql_13_not_installed": "PostgreSQL 11はインストールされていますが、PostgreSQL 13はインストールされてい!?:(システムで何か奇妙なことが起こった可能性があります...",
"migration_0024_rebuild_python_venv_broken_app": "このアプリ用にvirtualenvを簡単に再構築できないため、{app}スキップします。代わりに、「yunohostアプリのアップグレード-{app}を強制」を使用してこのアプリを強制的にアップグレードして、状況を修正する必要があります。",
"migration_0024_rebuild_python_venv_disclaimer_base": "Debian Bullseye へのアップグレード後、Debian に同梱されている新しい Python バージョンに変換するために、いくつかの Python アプリケーションを部分的に再構築する必要があります (技術的には、「virtualenv」と呼ばれるものを再作成する必要があります)。それまでの間、これらのPythonアプリケーションは機能しない可能性があります。YunoHostは、以下に詳述するように、それらのいくつかについて仮想環境の再構築を試みることができます。他のアプリの場合、または再構築の試行が失敗した場合は、それらのアプリのアップグレードを手動で強制する必要があります。",
"migration_0024_rebuild_python_venv_disclaimer_ignored": "これらのアプリに対して Virtualenvs を自動的に再構築することはできません。あなたはそれらのアップグレードを強制する必要があります、それはコマンドラインから行うことができます: 'yunohostアプリのアップグレード - -force APP':{ignored_apps}",
"migration_0024_rebuild_python_venv_disclaimer_rebuild": "virtualenvの再構築は、次のアプリに対して試行されます(注意:操作には時間がかかる場合があります)。 {rebuild_apps}",
"migration_0024_rebuild_python_venv_failed": "{app} の Python virtualenv の再構築に失敗しました。これが解決されない限り、アプリは機能しない場合があります。「yunohostアプリのアップグレード--強制{app}」を使用してこのアプリのアップグレードを強制して、状況を修正する必要があります。",
"migration_0024_rebuild_python_venv_in_progress": "現在、 '{app}'のPython仮想環境を再構築しようとしています",
"migration_description_0021_migrate_to_bullseye": "システムを Debian ブルズアイと YunoHost 11.x にアップグレードする",
"migration_description_0022_php73_to_php74_pools": "php7.3-fpm 'pool' conf ファイルを php7.4 に移行します。",
"migration_description_0023_postgresql_11_to_13": "PostgreSQL 11 から 13 へのデータベースの移行",
"migration_description_0024_rebuild_python_venv": "ブルズアイ移行後にPythonアプリを修復する",
"migration_description_0025_global_settings_to_configpanel": "従来のグローバル設定の命名法を新しい最新の命名法に移行する",
"migration_ldap_rollback_success": "システムがロールバックされました。",
"migrations_already_ran": "これらの移行は既に完了しています: {ids}",
"migrations_dependencies_not_satisfied": "移行{id}の前に、次の移行を実行します: '{dependencies_id}'。",
"migrations_exclusive_options": "'--auto'、'--skip'、および '--force-rerun' は相互に排他的なオプションです。",
"migrations_failed_to_load_migration": "移行{id}を読み込めませんでした: {error}",
"migrations_list_conflict_pending_done": "'--previous' と '--done' の両方を同時に使用することはできません。",
"migrations_loading_migration": "移行{id}を読み込んでいます...",
"migrations_migration_has_failed": "移行{id}が完了しなかったため、中止されました。エラー: {exception}",
"migrations_must_provide_explicit_targets": "'--skip' または '--force-rerun' を使用する場合は、明示的なターゲットを指定する必要があります。",
"migrations_need_to_accept_disclaimer": "移行{id}を実行するには、次の免責事項に同意する必要があります。\n---\n{disclaimer}\n---\n移行の実行に同意する場合は、'--accept-disclaimer' オプションを指定してコマンドを再実行してください。",
"migrations_running_forward": "移行{id}を実行しています...",
"migrations_skip_migration": "移行{id}スキップしています...",
"migrations_success_forward": "移行{id}完了しました",
"migrations_to_be_ran_manually": "移行{id}は手動で実行する必要があります。ウェブ管理ページの移行→ツールに移動するか、「yunohostツールの移行実行」を実行してください。",
"not_enough_disk_space": "'{path}'に十分な空き容量がありません",
"operation_interrupted": "操作は手動で中断されたようですね?",
"migrations_no_migrations_to_run": "実行する移行はありません",
"migrations_no_such_migration": "「{id}」と呼ばれる移行はありません",
"other_available_options": "...および{n}個の表示されない他の使用可能なオプション",
"migrations_not_pending_cant_skip": "これらの移行は保留中ではないため、スキップすることはできません。 {ids}",
"migrations_pending_cant_rerun": "これらの移行はまだ保留中であるため、再度実行することはできません{ids}",
"password_confirmation_not_the_same": "パスワードが一致しません",
"password_listed": "このパスワードは、世界で最も使用されているパスワードの1つです。もっとユニークなものを選んでください。",
"password_too_long": "127文字未満のパスワードを選択してください",
"password_too_simple_2": "パスワードは8文字以上で、数字、大文字、小文字を含める必要があります",
"password_too_simple_3": "パスワードは8文字以上で、数字、大文字、小文字、特殊文字を含める必要があります",
"password_too_simple_4": "パスワードは12文字以上で、数字、大文字、小文字、特殊文字を含める必要があります",
"pattern_backup_archive_name": "最大 30 文字、英数字、-_ を含む有効なファイル名である必要があります。文字のみ",
"pattern_domain": "有効なドメイン名である必要があります(例:my-domain.org)",
"pattern_email": "「+」記号のない有効な電子メールアドレスである必要があります(例:someone@example.com)",
"pattern_email_forward": "有効な電子メールアドレスである必要があり、「+」記号が受け入れられます(例:someone+tag@example.com)",
"pattern_firstname": "有効な名前(3 文字以上)である必要があります。",
"pattern_fullname": "有効なフルネーム (3 文字以上) である必要があります。",
"pattern_lastname": "有効な姓 (3 文字以上) である必要があります。",
"pattern_mailbox_quota": "クォータを持たない場合は、接尾辞が b/k/M/G/T または 0 を含むサイズである必要があります",
"pattern_password": "3 文字以上である必要があります",
"pattern_password_app": "申し訳ありませんが、パスワードに次の文字を含めることはできません: {forbidden_chars}",
"pattern_port_or_range": "有効なポート番号(例:0-65535)またはポート範囲(例:100:200)である必要があります",
"pattern_username": "小文字の英数字とアンダースコア(_)のみにする必要があります",
"permission_already_allowed": "グループ '{group}' には既にアクセス許可 '{permission}' が有効になっています",
"permission_already_disallowed": "グループ '{group}' には既にアクセス許可 '{permission}' が無効になっています",
"permission_already_exist": "アクセス許可 '{permission}' は既に存在します",
"permission_already_up_to_date": "追加/削除要求が既に現在の状態と一致しているため、アクセス許可は更新されませんでした。",
"permission_cannot_remove_main": "メイン権限の削除は許可されていません",
"permission_cant_add_to_all_users": "権限{permission}すべてのユーザーに追加することはできません。",
"permission_created": "アクセス許可 '{permission}' が作成されました",
"permission_creation_failed": "アクセス許可 '{permission}' を作成できませんでした: {error}",
"permission_currently_allowed_for_all_users": "このアクセス許可は現在、他のユーザーに加えてすべてのユーザーに付与されています。「all_users」権限を削除するか、現在付与されている他のグループを削除することをお勧めします。",
"permission_deleted": "権限 '{permission}' が削除されました",
"permission_deletion_failed": "アクセス許可 '{permission}' を削除できませんでした: {error}",
"permission_not_found": "アクセス許可 '{permission}' が見つかりません",
"permission_protected": "アクセス許可{permission}は保護されています。このアクセス許可に対して訪問者グループを追加または削除することはできません。",
"permission_require_account": "権限{permission}は、アカウントを持つユーザーに対してのみ意味があるため、訪問者に対して有効にすることはできません。",
"permission_update_failed": "アクセス許可 '{permission}' を更新できませんでした: {error}",
"port_already_closed": "ポート {port} は既に{ip_version}接続のために閉じられています",
"port_already_opened": "ポート {port} は既に{ip_version}接続用に開かれています",
"postinstall_low_rootfsspace": "ルートファイルシステムの総容量は10GB未満で、かなり気になります。ディスク容量がすぐに不足する可能性があります。ルートファイルシステム用に少なくとも16GBを用意することをお勧めします。この警告にもかかわらずYunoHostをインストールする場合は、--force-diskspaceを使用してポストインストールを再実行してください",
"regenconf_dry_pending_applying": "カテゴリ '{category}' に適用された保留中の構成を確認しています...",
"regenconf_failed": "カテゴリの設定を再生成できませんでした: {categories}",
"regenconf_file_backed_up": "構成ファイル '{conf}' が '{backup}' にバックアップされました",
"regenconf_file_copy_failed": "新しい構成ファイル '{new}' を '{conf}' にコピーできませんでした",
"regenconf_file_kept_back": "設定ファイル '{conf}' は regen-conf (カテゴリ {category}) によって削除される予定でしたが、元に戻されました。",
"regenconf_file_manually_modified": "構成ファイル '{conf}' は手動で変更されており、更新されません",
"regenconf_file_manually_removed": "構成ファイル '{conf}' は手動で削除され、作成されません",
"regenconf_file_remove_failed": "構成ファイル '{conf}' を削除できませんでした",
"regenconf_file_removed": "構成ファイル '{conf}' が削除されました",
"regenconf_file_updated": "構成ファイル '{conf}' が更新されました",
"regenconf_need_to_explicitly_specify_ssh": "ssh構成は手動で変更されていますが、実際に変更を適用するには、--forceでカテゴリ「ssh」を明示的に指定する必要があります。",
"regenconf_now_managed_by_yunohost": "設定ファイル '{conf}' が YunoHost (カテゴリ {category}) によって管理されるようになりました。",
"regenconf_pending_applying": "カテゴリ '{category}' に保留中の構成を適用しています...",
"regenconf_up_to_date": "カテゴリ '{category}' の設定は既に最新です",
"regenconf_updated": "このカテゴリーにログが登録されていません",
"regenconf_would_be_updated": "カテゴリ '{category}' の構成が更新されているはずです。",
"regex_incompatible_with_tile": "パッケージャー!アクセス許可 '{permission}' show_tile が 'true' に設定されているため、正規表現 URL をメイン URL として定義できません",
"regex_with_only_domain": "ドメインに正規表現を使用することはできませんが、パスにのみ使用できます",
"registrar_infos": "レジストラ情報",
"restore_already_installed_app": "'{name}' の {id} パネル設定をアップデートする",
"restore_already_installed_apps": "次のアプリは既にインストールされているため復元できません。 {apps}",
"restore_backup_too_old": "このバックアップアーカイブは、古すぎるYunoHostバージョンからのものであるため、復元できません。",
"restore_cleaning_failed": "一時復元ディレクトリをクリーンアップできませんでした",
"restore_complete": "復元が完了しました",
"restore_may_be_not_enough_disk_space": "システムに十分なスペースがないようです(空き:{free_space} B、必要なスペース:{needed_space} B、セキュリティマージン:{margin} B)",
"root_password_desynchronized": "管理者パスワードが変更されましたが、YunoHostはこれをrootパスワードに伝播できませんでした!",
"server_reboot_confirm": "サーバーはすぐに再起動しますが、よろしいですか?[{answers}]",
"server_shutdown": "サーバーがシャットダウンします",
"service_already_stopped": "サービス '{service}' は既に停止されています",
"service_cmd_exec_failed": "コマンド '{command}' を実行できませんでした",
"service_description_nginx": "サーバーでホストされているすべてのWebサイトへのアクセスを提供または提供します",
"service_description_redis-server": "高速データ・アクセス、タスク・キュー、およびプログラム間の通信に使用される特殊なデータベース",
"service_description_rspamd": "スパムやその他の電子メール関連機能をフィルタリングします",
"service_description_slapd": "ユーザー、ドメイン、関連情報を格納します",
"service_description_ssh": "ターミナル経由でサーバーにリモート接続できます(SSHプロトコル)",
"service_description_yunohost-api": "YunoHostウェブインターフェイスとシステム間の相互作用を管理します",
"service_description_yunohost-firewall": "サービスへの接続ポートの開閉を管理",
"service_description_yunomdns": "ローカルネットワークで「yunohost.local」を使用してサーバーに到達できます",
"service_disable_failed": "起動時にサービス '{service}' を開始できませんでした。\n\n最近のサービスログ:{logs}",
"service_disabled": "システムの起動時にサービス '{service}' は開始されなくなります。",
"service_reload_failed": "サービス '{service}' をリロードできませんでした\n\n最近のサービスログ:{logs}",
"service_reload_or_restart_failed": "サービス '{service}' をリロードまたは再起動できませんでした\n\n最近のサービスログ:{logs}",
"service_reloaded_or_restarted": "サービス '{service}' が再読み込みまたは再起動されました",
"service_remove_failed": "サービス '{service}' を削除できませんでした",
"service_removed": "サービス '{service}' が削除されました",
"service_restart_failed": "サービス '{service}' を再起動できませんでした\n\n最近のサービスログ:{logs}",
"service_restarted": "サービス '{service}' が再起動しました",
"service_start_failed": "サービス '{service}' を開始できませんでした\n\n最近のサービスログ:{logs}",
"service_started": "サービス '{service}' が開始されました",
"service_stop_failed": "サービス '{service}' を停止できません\n\n最近のサービスログ:{logs}",
"service_stopped": "サービス '{service}' が停止しました",
"service_unknown": "不明なサービス '{service}'",
"system_username_exists": "ユーザー名はシステムユーザーのリストにすでに存在します",
"this_action_broke_dpkg": "このアクションはdpkg / APT(システムパッケージマネージャ)を壊しました...SSH経由で接続し、「sudo apt install --fix-broken」および/または「sudo dpkg --configure -a」を実行することで、この問題を解決できます。",
"tools_upgrade": "システムパッケージのアップグレード",
"tools_upgrade_failed": "パッケージをアップグレードできませんでした: {packages_list}",
"unbackup_app": "{app}は保存されません",
"unexpected_error": "予期しない問題が発生しました:{error}",
"unknown_main_domain_path": "'{app}' の不明なドメインまたはパス。アクセス許可の URL を指定できるようにするには、ドメインとパスを指定する必要があります。",
"unrestore_app": "{app}は復元されません",
"updating_apt_cache": "システムパッケージの利用可能なアップグレードを取得しています...",
"upgrade_complete": "アップグレート完了",
"upgrading_packages": "パッケージをアップグレードしています...",
"upnp_dev_not_found": "UPnP デバイスが見つかりません",
"upnp_disabled": "UPnP がオフになりました",
"upnp_enabled": "UPnP がオンになりました",
"upnp_port_open_failed": "UPnP 経由でポートを開けませんでした",
"user_already_exists": "ユーザー '{user}' は既に存在します",
"user_created": "ユーザーが作成されました。",
"user_creation_failed": "ユーザー {user}を作成できませんでした: {error}",
"user_deleted": "ユーザーが削除されました",
"user_deletion_failed": "ユーザー {user}を削除できませんでした: {error}",
"user_home_creation_failed": "ユーザーのホームフォルダ '{home}' を作成できませんでした",
"user_import_bad_file": "CSVファイルが正しくフォーマットされていないため、データ損失の可能性を回避するために無視されます",
"user_import_bad_line": "行{line}が正しくありません: {details}",
"user_import_failed": "ユーザーのインポート操作が完全に失敗しました",
"user_import_missing_columns": "次の列がありません: {columns}",
"user_import_nothing_to_do": "インポートする必要があるユーザーはいません",
"user_import_partial_failed": "ユーザーのインポート操作が部分的に失敗しました",
"user_import_success": "ユーザーが正常にインポートされました",
"user_unknown": "不明なユーザー: {user}",
"user_update_failed": "ユーザー {user}を更新できませんでした: {error}",
"user_updated": "ユーザー情報が変更されました",
"visitors": "訪問者",
"yunohost_already_installed": "YunoHostはすでにインストールされています",
"yunohost_configured": "YunoHost が構成されました",
"yunohost_installing": "YunoHostをインストールしています...",
"yunohost_not_installed": "YunoHostが正しくインストールされていません。yunohost tools postinstall を実行してください",
"yunohost_postinstall_end_tip": "インストール後処理が完了しました!セットアップを完了するには、次の点を考慮してください。\n - ウェブ管理画面の「診断」セクション(またはコマンドラインでyunohost diagnosis run)を通じて潜在的な問題を診断します。\n - 管理ドキュメントの「セットアップの最終処理」と「YunoHostを知る」の部分を読む: https://yunohost.org/admindoc。",
"additional_urls_already_removed": "アクセス許可 {permission} に対する追加URLで {url} は既に削除されています"
}

View file

@ -29,7 +29,7 @@
"system_upgraded": "Zaktualizowano system",
"diagnosis_description_regenconf": "Konfiguracja systemu",
"diagnosis_description_apps": "Aplikacje",
"diagnosis_description_basesystem": "Podstawowy system",
"diagnosis_description_basesystem": "Baza systemu",
"unlimit": "Brak limitu",
"global_settings_setting_pop3_enabled": "Włącz POP3",
"domain_created": "Utworzono domenę",
@ -214,5 +214,65 @@
"confirm_app_insufficient_ram": "UWAGA! Ta aplikacja wymaga {required} pamięci RAM do zainstalowania/aktualizacji, a obecnie dostępne jest tylko {current}. Nawet jeśli aplikacja mogłaby działać, proces instalacji/aktualizacji wymaga dużej ilości pamięci RAM, więc serwer może się zawiesić i niepowodzenie może być katastrofalne. Jeśli mimo to jesteś gotów podjąć to ryzyko, wpisz '{answers}'",
"app_not_upgraded_broken_system": "Aplikacja '{failed_app}' nie powiodła się w procesie aktualizacji i spowodowała uszkodzenie systemu. W rezultacie anulowane zostały aktualizacje następujących aplikacji: {apps}",
"app_not_upgraded_broken_system_continue": "Aplikacja '{failed_app}' nie powiodła się w procesie aktualizacji i spowodowała uszkodzenie systemu (parametr --continue-on-failure jest ignorowany). W rezultacie anulowane zostały aktualizacje następujących aplikacji: {apps}",
"certmanager_domain_http_not_working": "Domena {domain} wydaje się niedostępna przez HTTP. Sprawdź kategorię 'Strona internetowa' diagnostyki, aby uzyskać więcej informacji. (Jeśli wiesz, co robisz, użyj opcji '--no-checks', aby wyłączyć te sprawdzania.)"
"certmanager_domain_http_not_working": "Domena {domain} wydaje się niedostępna przez HTTP. Sprawdź kategorię 'Strona internetowa' diagnostyki, aby uzyskać więcej informacji. (Jeśli wiesz, co robisz, użyj opcji '--no-checks', aby wyłączyć te sprawdzania.)",
"migration_0021_system_not_fully_up_to_date": "Twój system nie jest w pełni zaktualizowany! Proszę, wykonaj zwykłą aktualizację oprogramowania zanim rozpoczniesz migrację na system Bullseye.",
"global_settings_setting_smtp_relay_port": "Port przekaźnika SMTP",
"domain_config_cert_renew": "Odnów certyfikat Let's Encrypt",
"root_password_changed": "Hasło root zostało zmienione",
"diagnosis_services_running": "Usługa {service} działa!",
"global_settings_setting_admin_strength": "Wymogi dotyczące siły hasła administratora",
"global_settings_setting_admin_strength_help": "Wymagania te są egzekwowane tylko podczas inicjalizacji lub zmiany hasła",
"global_settings_setting_pop3_enabled_help": "Włącz protokołu POP3 dla serwera poczty",
"global_settings_setting_postfix_compatibility": "Kompatybilność Postfix",
"global_settings_setting_smtp_relay_user": "Nazwa użytkownika przekaźnika SMTP",
"global_settings_setting_ssh_password_authentication_help": "Zezwól na logowanie hasłem przez SSH",
"diagnosis_apps_allgood": "Wszystkie zainstalowane aplikacje są zgodne z podstawowymi zasadami pakowania",
"diagnosis_basesystem_hardware": "Architektura sprzętowa serwera to {virt} {arch}",
"diagnosis_ip_connected_ipv4": "Serwer jest połączony z Internet z użyciem IPv4!",
"diagnosis_ip_no_ipv6": "Serwer nie ma działającego połączenia z użyciem IPv6.",
"diagnosis_http_hairpinning_issue": "Wygląda na to, że sieć lokalna nie ma \"hairpinning\".",
"backup_unable_to_organize_files": "Nie można użyć szybkiej metody porządkowania plików w archiwum",
"log_letsencrypt_cert_renew": "Odnów '{}' certyfikat Let's Encrypt",
"global_settings_setting_passwordless_sudo": "Umożliw administratorom korzystania z 'sudo' bez konieczności ponownego wpisywania hasła",
"global_settings_setting_smtp_relay_enabled": "Włącz przekaźnik SMTP",
"global_settings_setting_smtp_relay_host": "Host przekaźnika SMTP",
"global_settings_setting_user_strength": "Wymagania dotyczące siły hasła użytkownika",
"domain_config_mail_in": "Odbieranie maili",
"global_settings_setting_webadmin_allowlist_enabled_help": "Zezwól tylko kilku adresom IP na dostęp do panelu webadmin.",
"diagnosis_basesystem_kernel": "Serwer działa pod kontrolą jądra Linuksa {kernel_version}",
"diagnosis_dns_good_conf": "Rekordy DNS zostały poprawnie skonfigurowane dla domeny {domain} (category {category})",
"diagnosis_ram_ok": "System nadal ma {available} ({available_percent}%) wolnej pamięci RAM z całej puli {total}.",
"diagnosis_http_ok": "Domena {domain} jest dostępna przez HTTP z poziomu sieci zewnętrznej.",
"diagnosis_swap_tip": "Pamiętaj, że wykorzystywanie partycji swap na karcie pamięci SD lub na dysku SSD może znacznie skrócić czas działania tego urządzenia.",
"diagnosis_basesystem_host": "Serwer działa pod kontrolą systemu Debian {debian_version}",
"diagnosis_basesystem_ynh_main_version": "Serwer działa pod kontrolą oprogramowania YunoHost {main_version} ({repo})",
"diagnosis_diskusage_verylow": "Przestrzeń <code>{mountpoint}</code> (na dysku <code>{device}</code>) ma tylko {free} ({free_percent}%) wolnego miejsca z całej puli {total}! Rozważ pozbycie się niepotrzebnych plików!",
"global_settings_setting_root_password": "Nowe hasło root",
"global_settings_setting_root_password_confirm": "Powtórz nowe hasło root",
"global_settings_setting_security_experimental_enabled": "Eksperymentalne funkcje bezpieczeństwa",
"global_settings_setting_smtp_relay_password": "Hasło przekaźnika SMTP",
"global_settings_setting_user_strength_help": "Wymagania te są egzekwowane tylko podczas inicjalizacji lub zmiany hasła",
"global_settings_setting_webadmin_allowlist_enabled": "Włącz listę dozwolonych adresów IP dla panelu webadmin",
"root_password_desynchronized": "Hasło administratora zostało zmienione, ale YunoHost nie mógł wykorzystać tego hasła jako hasło root!",
"service_already_started": "Usługa '{service}' już jest włączona",
"diagnosis_ip_dnsresolution_working": "Rozpoznawanie nazw domen działa!",
"diagnosis_regenconf_manually_modified": "Wygląda na to, że plik konfiguracyjny <code>{file}</code> został zmodyfikowany ręcznie.",
"diagnosis_diskusage_ok": "Przestrzeń <code>{mountpoint}</code> (na dysku <code>{device}</code>) nadal ma {free} ({free_percent}%) wolnego miejsca z całej puli {total}!",
"diagnosis_diskusage_low": "Przestrzeń <code>{mountpoint}</code> (na dysku <code>{device}</code>) ma tylko {free} ({free_percent}%) wolnego miejsca z całej puli {total}! Uważaj na możliwe zapełnienie dysku w bliskiej przyszłości.",
"diagnosis_ip_connected_ipv6": "Serwer nie jest połączony z internetem z użyciem IPv6!",
"global_settings_setting_smtp_relay_enabled_help": "Włączenie przekaźnika SMTP, który ma być używany do wysyłania poczty zamiast tej instancji yunohost może być przydatne, jeśli znajdujesz się w jednej z następujących sytuacji: Twój port 25 jest zablokowany przez dostawcę usług internetowych lub dostawcę VPS, masz adres IP zamieszkania wymieniony w DUHL, nie jesteś w stanie skonfigurować odwrotnego DNS lub ten serwer nie jest bezpośrednio widoczny w Internecie i chcesz użyć innego do wysyłania wiadomości e-mail.",
"global_settings_setting_backup_compress_tar_archives_help": "Podczas tworzenia nowych kopii zapasowych archiwa będą skompresowane (.tar.gz), a nie nieskompresowane jak dotychczas (.tar). Uwaga: włączenie tej opcji oznacza tworzenie mniejszych archiwów kopii zapasowych, ale początkowa procedura tworzenia kopii zapasowej będzie znacznie dłuższa i mocniej obciąży procesor.",
"domain_config_mail_out": "Wysyłanie maili",
"domain_dns_registrar_supported": "YunoHost automatycznie wykrył, że ta domena jest obsługiwana przez rejestratora **{registrar}**. Jeśli chcesz, YunoHost automatycznie skonfiguruje rekordy DNS, ale musisz podać odpowiednie dane uwierzytelniające API. Dokumentację dotyczącą uzyskiwania poświadczeń API można znaleźć na tej stronie: https://yunohost.org/registar_api_{registrar}. (Można również ręcznie skonfigurować rekordy DNS zgodnie z dokumentacją na stronie https://yunohost.org/dns )",
"domain_config_cert_summary_letsencrypt": "Świetnie! Wykorzystujesz właściwy certyfikaty Let's Encrypt!",
"global_settings_setting_portal_theme": "Motyw portalu",
"global_settings_setting_portal_theme_help": "Więcej informacji na temat tworzenia niestandardowych motywów portalu można znaleźć na stronie https://yunohost.org/theming",
"global_settings_setting_dns_exposure": "Wersje IP do uwzględnienia w konfiguracji i diagnostyce DNS",
"domain_config_auth_token": "Token uwierzytelniający",
"global_settings_setting_dns_exposure_help": "Uwaga: Ma to wpływ tylko na zalecaną konfigurację DNS i kontrole diagnostyczne. Nie ma to wpływu na konfigurację systemu.",
"global_settings_setting_security_experimental_enabled_help": "Uruchom eksperymentalne funkcje bezpieczeństwa (nie włączaj, jeśli nie wiesz co robisz!)",
"global_settings_setting_smtp_allow_ipv6_help": "Zezwól na wykorzystywanie IPv7 do odbierania i wysyłania maili",
"global_settings_setting_ssh_password_authentication": "Logowanie hasłem",
"diagnosis_backports_in_sources_list": "Wygląda na to że apt (menedżer pakietów) został skonfigurowany tak, aby wykorzystywać repozytorium backported. Nie zalecamy wykorzystywania repozytorium backported, ponieważ może powodować problemy ze stabilnością i/lub konflikty z konfiguracją. No chyba, że wiesz co robisz.",
"domain_config_xmpp_help": "Uwaga: niektóre funkcje XMPP będą wymagały aktualizacji rekordów DNS i odnowienia certyfikatu Lets Encrypt w celu ich włączenia"
}

View file

@ -489,10 +489,16 @@ domain:
help: Domain name to add
extra:
pattern: *pattern_domain
-d:
full: --dyndns
help: Subscribe to the DynDNS service
--ignore-dyndns:
help: If adding a DynDNS domain, only add the domain, without subscribing to the DynDNS service
action: store_true
--dyndns-recovery-password:
metavar: PASSWORD
nargs: "?"
const: 0
help: If adding a DynDNS domain, subscribe to the DynDNS service with a password, used to later delete the domain
extra:
pattern: *pattern_password
### domain_remove()
remove:
@ -511,6 +517,16 @@ domain:
full: --force
help: Do not ask confirmation to remove apps
action: store_true
--ignore-dyndns:
help: If removing a DynDNS domain, only remove the domain, without unsubscribing from the DynDNS service
action: store_true
--dyndns-recovery-password:
metavar: PASSWORD
nargs: "?"
const: 0
help: If removing a DynDNS domain, unsubscribe from the DynDNS service with a password
extra:
pattern: *pattern_password
### domain_maindomain()
main-domain:
@ -537,6 +553,7 @@ domain:
pattern: *pattern_domain
path:
help: The path to check (e.g. /coffee)
### domain_action_run()
action-run:
@ -553,11 +570,65 @@ domain:
help: Serialized arguments for action (i.e. "foo=bar&lorem=ipsum")
subcategories:
dyndns:
subcategory_help: Subscribe and Update DynDNS Hosts
actions:
### domain_dyndns_subscribe()
subscribe:
action_help: Subscribe to a DynDNS service
arguments:
domain:
help: Domain to subscribe to the DynDNS service
extra:
pattern: *pattern_domain
-p:
full: --recovery-password
nargs: "?"
const: 0
help: Password used to later recover the domain if needed
extra:
pattern: *pattern_password
### domain_dyndns_unsubscribe()
unsubscribe:
action_help: Unsubscribe from a DynDNS service
arguments:
domain:
help: Domain to unsubscribe from the DynDNS service
extra:
pattern: *pattern_domain
required: True
-p:
full: --recovery-password
nargs: "?"
const: 0
help: Recovery password used to delete the domain
extra:
pattern: *pattern_password
### domain_dyndns_list()
list:
action_help: List all subscribed DynDNS domains
### domain_dyndns_set_recovery_password()
set-recovery-password:
action_help: Set recovery password
arguments:
domain:
help: Domain to set recovery password for
extra:
pattern: *pattern_domain
required: True
-p:
full: --recovery-password
help: The new recovery password
extra:
password: ask_dyndns_recovery_password
pattern: *pattern_password
config:
subcategory_help: Domain settings
actions:
### domain_config_get()
get:
action_help: Display a domain configuration
@ -1431,22 +1502,27 @@ firewall:
# DynDNS #
#############################
dyndns:
category_help: Subscribe and Update DynDNS Hosts
category_help: Subscribe and Update DynDNS Hosts ( deprecated, use 'yunohost domain dyndns' instead )
actions:
### dyndns_subscribe()
subscribe:
action_help: Subscribe to a DynDNS service
deprecated: true
arguments:
-d:
full: --domain
help: Full domain to subscribe with
help: Full domain to subscribe with ( deprecated, use 'yunohost domain dyndns subscribe' instead )
extra:
pattern: *pattern_domain
-k:
full: --key
help: Public DNS key
-p:
full: --recovery-password
nargs: "?"
const: 0
help: Password used to later recover the domain if needed
extra:
pattern: *pattern_password
### dyndns_update()
update:
action_help: Update IP on DynDNS platform
@ -1534,8 +1610,15 @@ tools:
required: True
comment: good_practices_about_admin_password
--ignore-dyndns:
help: Do not subscribe domain to a DynDNS service
help: If adding a DynDNS domain, only add the domain, without subscribing to the DynDNS service
action: store_true
--dyndns-recovery-password:
metavar: PASSWORD
nargs: "?"
const: 0
help: If adding a DynDNS domain, subscribe to the DynDNS service with a password, used to later recover the domain if needed
extra:
pattern: *pattern_password
--force-diskspace:
help: Use this if you really want to install YunoHost on a setup with less than 10 GB on the root filesystem
action: store_true

View file

@ -1083,7 +1083,7 @@ def app_install(
raw_questions = manifest["install"]
questions = ask_questions_and_parse_answers(raw_questions, prefilled_answers=args)
args = {
question.name: question.value
question.id: question.value
for question in questions
if question.value is not None
}
@ -1131,7 +1131,7 @@ def app_install(
if question.type == "password":
continue
app_settings[question.name] = question.value
app_settings[question.id] = question.value
_set_app_settings(app_instance_name, app_settings)
@ -1186,17 +1186,17 @@ def app_install(
# Reinject user-provider passwords which are not in the app settings
# (cf a few line before)
if question.type == "password":
env_dict[question.name] = question.value
env_dict[question.id] = question.value
# We want to hav the env_dict in the log ... but not password values
env_dict_for_logging = env_dict.copy()
for question in questions:
# Or should it be more generally question.redact ?
if question.type == "password":
if f"YNH_APP_ARG_{question.name.upper()}" in env_dict_for_logging:
del env_dict_for_logging[f"YNH_APP_ARG_{question.name.upper()}"]
if question.name in env_dict_for_logging:
del env_dict_for_logging[question.name]
if f"YNH_APP_ARG_{question.id.upper()}" in env_dict_for_logging:
del env_dict_for_logging[f"YNH_APP_ARG_{question.id.upper()}"]
if question.id in env_dict_for_logging:
del env_dict_for_logging[question.id]
operation_logger.extra.update({"env": env_dict_for_logging})
@ -1507,6 +1507,9 @@ def app_setting(app, key, value=None, delete=False):
if delete:
if key in app_settings:
del app_settings[key]
else:
# Don't call _set_app_settings to avoid unecessary writes...
return
# SET
else:
@ -2245,17 +2248,17 @@ def _set_default_ask_questions(questions, script_name="install"):
), # i18n: app_manifest_install_ask_init_admin_permission
]
for question_name, question in questions.items():
question["name"] = question_name
for question_id, question in questions.items():
question["id"] = question_id
# If this question corresponds to a question with default ask message...
if any(
(question.get("type"), question["name"]) == question_with_default
(question.get("type"), question["id"]) == question_with_default
for question_with_default in questions_with_default
):
# The key is for example "app_manifest_install_ask_domain"
question["ask"] = m18n.n(
f"app_manifest_{script_name}_ask_{question['name']}"
f"app_manifest_{script_name}_ask_{question['id']}"
)
# Also it in fact doesn't make sense for any of those questions to have an example value nor a default value...
@ -2651,10 +2654,21 @@ def _check_manifest_requirements(
ram_requirement["runtime"]
)
# Some apps have a higher runtime value than build ...
if ram_requirement["build"] != "?" and ram_requirement["runtime"] != "?":
max_build_runtime = (
ram_requirement["build"]
if human_to_binary(ram_requirement["build"])
> human_to_binary(ram_requirement["runtime"])
else ram_requirement["runtime"]
)
else:
max_build_runtime = ram_requirement["build"]
yield (
"ram",
can_build and can_run,
{"current": binary_to_human(ram), "required": ram_requirement["build"]},
{"current": binary_to_human(ram), "required": max_build_runtime},
"app_not_enough_ram", # i18n: app_not_enough_ram
)
@ -3088,3 +3102,47 @@ def _ask_confirmation(
if not answer:
raise YunohostError("aborting")
def regen_mail_app_user_config_for_dovecot_and_postfix(only=None):
dovecot = True if only in [None, "dovecot"] else False
postfix = True if only in [None, "postfix"] else False
from yunohost.user import _hash_user_password
postfix_map = []
dovecot_passwd = []
for app in _installed_apps():
settings = _get_app_settings(app)
if "domain" not in settings or "mail_pwd" not in settings:
continue
if dovecot:
hashed_password = _hash_user_password(settings["mail_pwd"])
dovecot_passwd.append(f"{app}:{hashed_password}::::::allow_nets=127.0.0.1/24")
if postfix:
mail_user = settings.get("mail_user", app)
mail_domain = settings.get("mail_domain", settings["domain"])
postfix_map.append(f"{mail_user}@{mail_domain} {app}")
if dovecot:
app_senders_passwd = "/etc/dovecot/app-senders-passwd"
content = "# This file is regenerated automatically.\n# Please DO NOT edit manually ... changes will be overwritten!"
content += '\n' + '\n'.join(dovecot_passwd)
write_to_file(app_senders_passwd, content)
chmod(app_senders_passwd, 0o440)
chown(app_senders_passwd, "root", "dovecot")
if postfix:
app_senders_map = "/etc/postfix/app_senders_login_maps"
content = "# This file is regenerated automatically.\n# Please DO NOT edit manually ... changes will be overwritten!"
content += '\n' + '\n'.join(postfix_map)
write_to_file(app_senders_map, content)
chmod(app_senders_map, 0o440)
chown(app_senders_map, "postfix", "root")
os.system(f"postmap {app_senders_map} 2>/dev/null")
chmod(app_senders_map + ".db", 0o640)
chown(app_senders_map + ".db", "postfix", "root")

View file

@ -182,7 +182,7 @@ class MyDiagnoser(Diagnoser):
if success != "ok":
return None
else:
if type_ == "TXT" and isinstance(answers,list):
if type_ == "TXT" and isinstance(answers, list):
for part in answers:
if part.startswith('"v=spf1'):
return part

View file

@ -640,12 +640,13 @@ def domain_dns_push(operation_logger, domain, dry_run=False, force=False, purge=
# FIXME: in the future, properly unify this with yunohost dyndns update
if registrar == "yunohost":
logger.info(m18n.n("domain_dns_registrar_yunohost"))
from yunohost.dyndns import dyndns_update
dyndns_update(domain=domain, force=force)
return {}
if registrar == "parent_domain":
parent_domain = _get_parent_domain_of(domain, topest=True)
registar, registrar_credentials = _get_registar_settings(parent_domain)
registrar, registrar_credentials = _get_registar_settings(parent_domain)
if any(registrar_credentials.values()):
raise YunohostValidationError(
"domain_dns_push_managed_in_parent_domain",
@ -653,9 +654,18 @@ def domain_dns_push(operation_logger, domain, dry_run=False, force=False, purge=
parent_domain=parent_domain,
)
else:
raise YunohostValidationError(
"domain_registrar_is_not_configured", domain=parent_domain
)
new_parent_domain = ".".join(parent_domain.split(".")[-3:])
registrar, registrar_credentials = _get_registar_settings(new_parent_domain)
if registrar == "yunohost":
raise YunohostValidationError(
"domain_dns_push_managed_in_parent_domain",
domain=domain,
parent_domain=new_parent_domain,
)
else:
raise YunohostValidationError(
"domain_registrar_is_not_configured", domain=parent_domain
)
if not all(registrar_credentials.values()):
raise YunohostValidationError(

View file

@ -36,6 +36,7 @@ from yunohost.regenconf import regen_conf, _force_clear_hashes, _process_regen_c
from yunohost.utils.configpanel import ConfigPanel
from yunohost.utils.form import BaseOption
from yunohost.utils.error import YunohostError, YunohostValidationError
from yunohost.utils.dns import is_yunohost_dyndns_domain
from yunohost.log import is_unit_operation
logger = getActionLogger("yunohost.domain")
@ -211,21 +212,26 @@ def _get_parent_domain_of(domain, return_self=False, topest=False):
return domain if return_self else None
@is_unit_operation()
def domain_add(operation_logger, domain, dyndns=False):
@is_unit_operation(exclude=["dyndns_recovery_password"])
def domain_add(operation_logger, domain, dyndns_recovery_password=None, ignore_dyndns=False):
"""
Create a custom domain
Keyword argument:
domain -- Domain name to add
dyndns -- Subscribe to DynDNS
dyndns_recovery_password -- Password used to later unsubscribe from DynDNS
ignore_dyndns -- If we want to just add the DynDNS domain to the list, without subscribing
"""
from yunohost.hook import hook_callback
from yunohost.app import app_ssowatconf
from yunohost.utils.ldap import _get_ldap_interface
from yunohost.utils.password import assert_password_is_strong_enough
from yunohost.certificate import _certificate_install_selfsigned
if dyndns_recovery_password:
operation_logger.data_to_redact.append(dyndns_recovery_password)
if domain.startswith("xmpp-upload."):
raise YunohostValidationError("domain_cannot_add_xmpp_upload")
@ -246,27 +252,20 @@ def domain_add(operation_logger, domain, dyndns=False):
# Non-latin characters (e.g. café.com => xn--caf-dma.com)
domain = domain.encode("idna").decode("utf-8")
# DynDNS domain
# Detect if this is a DynDNS domain ( and not a subdomain of a DynDNS domain )
dyndns = not ignore_dyndns and is_yunohost_dyndns_domain(domain) and len(domain.split(".")) == 3
if dyndns:
from yunohost.utils.dns import is_yunohost_dyndns_domain
from yunohost.dyndns import _guess_current_dyndns_domain
from yunohost.dyndns import is_subscribing_allowed
# Do not allow to subscribe to multiple dyndns domains...
if _guess_current_dyndns_domain() != (None, None):
if not is_subscribing_allowed():
raise YunohostValidationError("domain_dyndns_already_subscribed")
# Check that this domain can effectively be provided by
# dyndns.yunohost.org. (i.e. is it a nohost.me / noho.st)
if not is_yunohost_dyndns_domain(domain):
raise YunohostValidationError("domain_dyndns_root_unknown")
if dyndns_recovery_password:
assert_password_is_strong_enough("admin", dyndns_recovery_password)
operation_logger.start()
if dyndns:
from yunohost.dyndns import dyndns_subscribe
# Actually subscribe
dyndns_subscribe(domain=domain)
domain_dyndns_subscribe(domain=domain, recovery_password=dyndns_recovery_password)
_certificate_install_selfsigned([domain], True)
@ -315,8 +314,8 @@ def domain_add(operation_logger, domain, dyndns=False):
logger.success(m18n.n("domain_created"))
@is_unit_operation()
def domain_remove(operation_logger, domain, remove_apps=False, force=False):
@is_unit_operation(exclude=["dyndns_recovery_password"])
def domain_remove(operation_logger, domain, remove_apps=False, force=False, dyndns_recovery_password=None, ignore_dyndns=False):
"""
Delete domains
@ -325,12 +324,16 @@ def domain_remove(operation_logger, domain, remove_apps=False, force=False):
remove_apps -- Remove applications installed on the domain
force -- Force the domain removal and don't not ask confirmation to
remove apps if remove_apps is specified
dyndns_recovery_password -- Recovery password used at the creation of the DynDNS domain
ignore_dyndns -- If we just remove the DynDNS domain, without unsubscribing
"""
from yunohost.hook import hook_callback
from yunohost.app import app_ssowatconf, app_info, app_remove
from yunohost.utils.ldap import _get_ldap_interface
if dyndns_recovery_password:
operation_logger.data_to_redact.append(dyndns_recovery_password)
# the 'force' here is related to the exception happening in domain_add ...
# we don't want to check the domain exists because the ldap add may have
# failed
@ -391,6 +394,9 @@ def domain_remove(operation_logger, domain, remove_apps=False, force=False):
apps="\n".join([x[1] for x in apps_on_that_domain]),
)
# Detect if this is a DynDNS domain ( and not a subdomain of a DynDNS domain )
dyndns = not ignore_dyndns and is_yunohost_dyndns_domain(domain) and len(domain.split(".")) == 3
operation_logger.start()
ldap = _get_ldap_interface()
@ -437,9 +443,59 @@ def domain_remove(operation_logger, domain, remove_apps=False, force=False):
hook_callback("post_domain_remove", args=[domain])
# If a password is provided, delete the DynDNS record
if dyndns:
# Actually unsubscribe
domain_dyndns_unsubscribe(domain=domain, recovery_password=dyndns_recovery_password)
logger.success(m18n.n("domain_deleted"))
def domain_dyndns_subscribe(*args, **kwargs):
"""
Subscribe to a DynDNS domain
"""
from yunohost.dyndns import dyndns_subscribe
dyndns_subscribe(*args, **kwargs)
def domain_dyndns_unsubscribe(*args, **kwargs):
"""
Unsubscribe from a DynDNS domain
"""
from yunohost.dyndns import dyndns_unsubscribe
dyndns_unsubscribe(*args, **kwargs)
def domain_dyndns_list():
"""
Returns all currently subscribed DynDNS domains
"""
from yunohost.dyndns import dyndns_list
return dyndns_list()
def domain_dyndns_update(*args, **kwargs):
"""
Update a DynDNS domain
"""
from yunohost.dyndns import dyndns_update
dyndns_update(*args, **kwargs)
def domain_dyndns_set_recovery_password(*args, **kwargs):
"""
Set a recovery password for an already registered dyndns domain
"""
from yunohost.dyndns import dyndns_set_recovery_password
dyndns_set_recovery_password(*args, **kwargs)
@is_unit_operation()
def domain_main_domain(operation_logger, new_main_domain=None):
"""

View file

@ -17,13 +17,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
import os
import re
import json
import glob
import base64
import subprocess
import hashlib
from moulinette import m18n
from moulinette import Moulinette, m18n
from moulinette.core import MoulinetteError
from moulinette.utils.log import getActionLogger
from moulinette.utils.filesystem import write_to_file, rm, chown, chmod
@ -40,6 +40,17 @@ logger = getActionLogger("yunohost.dyndns")
DYNDNS_PROVIDER = "dyndns.yunohost.org"
DYNDNS_DNS_AUTH = ["ns0.yunohost.org", "ns1.yunohost.org"]
MAX_DYNDNS_DOMAINS = 1
def is_subscribing_allowed():
"""
Check if the limit of subscribed DynDNS domains has been reached
Returns:
True if the limit is not reached, False otherwise
"""
return len(dyndns_list()["domains"]) < MAX_DYNDNS_DOMAINS
def _dyndns_available(domain):
@ -67,23 +78,16 @@ def _dyndns_available(domain):
return r == f"Domain {domain} is available"
@is_unit_operation()
def dyndns_subscribe(operation_logger, domain=None, key=None):
@is_unit_operation(exclude=["recovery_password"])
def dyndns_subscribe(operation_logger, domain=None, recovery_password=None):
"""
Subscribe to a DynDNS service
Keyword argument:
domain -- Full domain to subscribe with
key -- Public DNS key
recovery_password -- Password that will be used to delete the domain
"""
if _guess_current_dyndns_domain() != (None, None):
raise YunohostValidationError("domain_dyndns_already_subscribed")
if domain is None:
domain = _get_maindomain()
operation_logger.related_to.append(("domain", domain))
# Verify if domain is provided by subscribe_host
if not is_yunohost_dyndns_domain(domain):
raise YunohostValidationError(
@ -94,36 +98,57 @@ def dyndns_subscribe(operation_logger, domain=None, key=None):
if not _dyndns_available(domain):
raise YunohostValidationError("dyndns_unavailable", domain=domain)
# Check adding another dyndns domain is still allowed
if not is_subscribing_allowed():
raise YunohostValidationError("domain_dyndns_already_subscribed")
# Prompt for a password if running in CLI and no password provided
if not recovery_password and Moulinette.interface.type == "cli":
logger.warning(m18n.n("ask_dyndns_recovery_password_explain"))
recovery_password = Moulinette.prompt(
m18n.n("ask_dyndns_recovery_password"),
is_password=True,
confirm=True
)
if not recovery_password:
logger.warning(m18n.n("dyndns_no_recovery_password"))
if recovery_password:
from yunohost.utils.password import assert_password_is_strong_enough
assert_password_is_strong_enough("admin", recovery_password)
operation_logger.data_to_redact.append(recovery_password)
if domain is None:
domain = _get_maindomain()
operation_logger.related_to.append(("domain", domain))
operation_logger.start()
# '165' is the convention identifier for hmac-sha512 algorithm
# '1234' is idk? doesnt matter, but the old format contained a number here...
key_file = f"/etc/yunohost/dyndns/K{domain}.+165+1234.key"
if key is None:
if len(glob.glob("/etc/yunohost/dyndns/*.key")) == 0:
if not os.path.exists("/etc/yunohost/dyndns"):
os.makedirs("/etc/yunohost/dyndns")
if not os.path.exists("/etc/yunohost/dyndns"):
os.makedirs("/etc/yunohost/dyndns")
logger.debug(m18n.n("dyndns_key_generating"))
# Here, we emulate the behavior of the old 'dnssec-keygen' utility
# which since bullseye was replaced by ddns-keygen which is now
# in the bind9 package ... but installing bind9 will conflict with dnsmasq
# and is just madness just to have access to a tsig keygen utility -.-
# Here, we emulate the behavior of the old 'dnssec-keygen' utility
# which since bullseye was replaced by ddns-keygen which is now
# in the bind9 package ... but installing bind9 will conflict with dnsmasq
# and is just madness just to have access to a tsig keygen utility -.-
# Use 512 // 8 = 64 bytes for hmac-sha512 (c.f. https://git.hactrn.net/sra/tsig-keygen/src/master/tsig-keygen.py)
secret = base64.b64encode(os.urandom(512 // 8)).decode("ascii")
# Use 512 // 8 = 64 bytes for hmac-sha512 (c.f. https://git.hactrn.net/sra/tsig-keygen/src/master/tsig-keygen.py)
secret = base64.b64encode(os.urandom(512 // 8)).decode("ascii")
# Idk why but the secret is split in two parts, with the first one
# being 57-long char ... probably some DNS format
secret = f"{secret[:56]} {secret[56:]}"
# Idk why but the secret is split in two parts, with the first one
# being 57-long char ... probably some DNS format
secret = f"{secret[:56]} {secret[56:]}"
key_content = f"{domain}. IN KEY 0 3 165 {secret}"
write_to_file(key_file, key_content)
key_content = f"{domain}. IN KEY 0 3 165 {secret}"
write_to_file(key_file, key_content)
chmod("/etc/yunohost/dyndns", 0o600, recursive=True)
chown("/etc/yunohost/dyndns", "root", recursive=True)
chmod("/etc/yunohost/dyndns", 0o600, recursive=True)
chown("/etc/yunohost/dyndns", "root", recursive=True)
import requests # lazy loading this module for performance reasons
@ -131,21 +156,24 @@ def dyndns_subscribe(operation_logger, domain=None, key=None):
try:
# Yeah the secret is already a base64-encoded but we double-bas64-encode it, whatever...
b64encoded_key = base64.b64encode(secret.encode()).decode()
data = {"subdomain": domain}
if recovery_password:
data["recovery_password"] = hashlib.sha256((domain + ":" + recovery_password.strip()).encode('utf-8')).hexdigest()
r = requests.post(
f"https://{DYNDNS_PROVIDER}/key/{b64encoded_key}?key_algo=hmac-sha512",
data={"subdomain": domain},
data=data,
timeout=30,
)
except Exception as e:
rm(key_file, force=True)
raise YunohostError("dyndns_registration_failed", error=str(e))
raise YunohostError("dyndns_subscribe_failed", error=str(e))
if r.status_code != 201:
rm(key_file, force=True)
try:
error = json.loads(r.text)["error"]
except Exception:
error = f'Server error, code: {r.status_code}. (Message: "{r.text}")'
raise YunohostError("dyndns_registration_failed", error=error)
raise YunohostError("dyndns_subscribe_failed", error=error)
# Yunohost regen conf will add the dyndns cron job if a key exists
# in /etc/yunohost/dyndns
@ -160,7 +188,124 @@ def dyndns_subscribe(operation_logger, domain=None, key=None):
subprocess.check_call(["bash", "-c", cmd.format(t="2 min")])
subprocess.check_call(["bash", "-c", cmd.format(t="4 min")])
logger.success(m18n.n("dyndns_registered"))
logger.success(m18n.n("dyndns_subscribed"))
@is_unit_operation(exclude=["recovery_password"])
def dyndns_unsubscribe(operation_logger, domain, recovery_password=None):
"""
Unsubscribe from a DynDNS service
Keyword argument:
domain -- Full domain to unsubscribe with
recovery_password -- Password that is used to delete the domain ( defined when subscribing )
"""
import requests # lazy loading this module for performance reasons
# Unsubscribe the domain using the key if available
keys = glob.glob(f"/etc/yunohost/dyndns/K{domain}.+*.key")
if keys:
key = keys[0]
with open(key) as f:
key = f.readline().strip().split(" ", 6)[-1]
base64key = base64.b64encode(key.encode()).decode()
credential = {"key": base64key}
# Otherwise, ask for the recovery password
else:
if Moulinette.interface.type == "cli" and not recovery_password:
logger.warning(m18n.n("ask_dyndns_recovery_password_explain_during_unsubscribe"))
recovery_password = Moulinette.prompt(
m18n.n("ask_dyndns_recovery_password"),
is_password=True
)
if not recovery_password:
logger.error(f"Cannot unsubscribe the domain {domain}: no credential provided")
return
secret = str(domain) + ":" + str(recovery_password).strip()
credential = {"recovery_password": hashlib.sha256(secret.encode('utf-8')).hexdigest()}
operation_logger.start()
# Send delete request
try:
r = requests.delete(
f"https://{DYNDNS_PROVIDER}/domains/{domain}",
data=credential,
timeout=30,
)
except Exception as e:
raise YunohostError("dyndns_unsubscribe_failed", error=str(e))
if r.status_code == 200: # Deletion was successful
for key_file in glob.glob(f"/etc/yunohost/dyndns/K{domain}.+*.key"):
rm(key_file, force=True)
# Yunohost regen conf will add the dyndns cron job if a key exists
# in /etc/yunohost/dyndns
regen_conf(["yunohost"])
elif r.status_code == 403:
raise YunohostError("dyndns_unsubscribe_denied")
elif r.status_code == 409:
raise YunohostError("dyndns_unsubscribe_already_unsubscribed")
else:
raise YunohostError("dyndns_unsubscribe_failed", error=f"The server returned code {r.status_code}")
logger.success(m18n.n("dyndns_unsubscribed"))
def dyndns_set_recovery_password(domain, recovery_password):
keys = glob.glob(f"/etc/yunohost/dyndns/K{domain}.+*.key")
if not keys:
raise YunohostValidationError("dyndns_key_not_found")
from yunohost.utils.password import assert_password_is_strong_enough
assert_password_is_strong_enough("admin", recovery_password)
secret = str(domain) + ":" + str(recovery_password).strip()
key = keys[0]
with open(key) as f:
key = f.readline().strip().split(" ", 6)[-1]
base64key = base64.b64encode(key.encode()).decode()
import requests # lazy loading this module for performance reasons
# Send delete request
try:
r = requests.put(
f"https://{DYNDNS_PROVIDER}/domains/{domain}/recovery_password",
data={"key": base64key, "recovery_password": hashlib.sha256(secret.encode('utf-8')).hexdigest()},
timeout=30,
)
except Exception as e:
raise YunohostError("dyndns_set_recovery_password_failed", error=str(e))
if r.status_code == 200:
logger.success(m18n.n("dyndns_set_recovery_password_success"))
elif r.status_code == 403:
raise YunohostError("dyndns_set_recovery_password_denied")
elif r.status_code == 404:
raise YunohostError("dyndns_set_recovery_password_unknown_domain")
elif r.status_code == 409:
raise YunohostError("dyndns_set_recovery_password_invalid_password")
else:
raise YunohostError("dyndns_set_recovery_password_failed", error=f"The server returned code {r.status_code}")
def dyndns_list():
"""
Returns all currently subscribed DynDNS domains ( deduced from the key files )
"""
from yunohost.domain import domain_list
domains = domain_list(exclude_subdomains=True)["domains"]
dyndns_domains = [d for d in domains if is_yunohost_dyndns_domain(d) and glob.glob(f"/etc/yunohost/dyndns/K{d}.+*.key")]
return {"domains": dyndns_domains}
@is_unit_operation()
@ -183,22 +328,26 @@ def dyndns_update(
import dns.tsigkeyring
import dns.update
# If domain is not given, try to guess it from keys available...
key = None
# If domain is not given, update all DynDNS domains
if domain is None:
(domain, key) = _guess_current_dyndns_domain()
if domain is None:
raise YunohostValidationError("dyndns_no_domain_registered")
dyndns_domains = dyndns_list()["domains"]
if not dyndns_domains:
raise YunohostValidationError("dyndns_no_domain_registered")
for domain in dyndns_domains:
dyndns_update(domain, force=force, dry_run=dry_run)
return
# If key is not given, pick the first file we find with the domain given
elif key is None:
keys = glob.glob(f"/etc/yunohost/dyndns/K{domain}.+*.key")
keys = glob.glob(f"/etc/yunohost/dyndns/K{domain}.+*.key")
if not keys:
raise YunohostValidationError("dyndns_key_not_found")
if not keys:
raise YunohostValidationError("dyndns_key_not_found")
key = keys[0]
key = keys[0]
# Get current IPv4 and IPv6
ipv4 = get_public_ip()
@ -330,34 +479,3 @@ def dyndns_update(
print(
"Warning: dry run, this is only the generated config, it won't be applied"
)
def _guess_current_dyndns_domain():
"""
This function tries to guess which domain should be updated by
"dyndns_update()" because there's not proper management of the current
dyndns domain :/ (and at the moment the code doesn't support having several
dyndns domain, which is sort of a feature so that people don't abuse the
dynette...)
"""
DYNDNS_KEY_REGEX = re.compile(r".*/K(?P<domain>[^\s\+]+)\.\+165.+\.key$")
# Retrieve the first registered domain
paths = list(glob.iglob("/etc/yunohost/dyndns/K*.key"))
for path in paths:
match = DYNDNS_KEY_REGEX.match(path)
if not match:
continue
_domain = match.group("domain")
# Verify if domain is registered (i.e., if it's available, skip
# current domain beause that's not the one we want to update..)
# If there's only 1 such key found, then avoid doing the request
# for nothing (that's very probably the one we want to find ...)
if len(paths) > 1 and _dyndns_available(_domain):
continue
else:
return (_domain, path)
return (None, None)

View file

@ -330,7 +330,7 @@ def test_app_from_catalog():
app_install(
"my_webapp",
args=f"domain={main_domain}&path=/site&with_sftp=0&password=superpassword&is_public=1&with_mysql=0&phpversion=none",
args=f"domain={main_domain}&path=/site&with_sftp=0&password=superpassword&init_main_permission=visitors&with_mysql=0&phpversion=none",
)
app_map_ = app_map(raw=True)
assert main_domain in app_map_
@ -339,7 +339,9 @@ def test_app_from_catalog():
assert app_map_[main_domain]["/site"]["id"] == "my_webapp"
assert app_is_installed(main_domain, "my_webapp")
assert app_is_exposed_on_http(main_domain, "/site", "Custom Web App")
assert app_is_exposed_on_http(
main_domain, "/site", "you have just installed My Webapp"
)
# Try upgrade, should do nothing
app_upgrade("my_webapp")

View file

@ -71,10 +71,14 @@ def test_repo_url_definition():
### Gitea
assert _is_app_repo_url("https://gitea.instance.tld/user/repo_ynh")
assert _is_app_repo_url("https://gitea.instance.tld/user/repo_ynh/src/branch/branch_name")
assert _is_app_repo_url(
"https://gitea.instance.tld/user/repo_ynh/src/branch/branch_name"
)
assert _is_app_repo_url("https://gitea.instance.tld/user/repo_ynh/src/tag/tag_name")
assert _is_app_repo_url("https://gitea.instance.tld/user/repo_ynh/src/commit/abcd1234")
assert _is_app_repo_url(
"https://gitea.instance.tld/user/repo_ynh/src/commit/abcd1234"
)
### Invalid patterns
# no schema

View file

@ -1,5 +1,7 @@
import pytest
import os
import time
import random
from moulinette.core import MoulinetteError
@ -16,6 +18,8 @@ from yunohost.domain import (
)
TEST_DOMAINS = ["example.tld", "sub.example.tld", "other-example.com"]
TEST_DYNDNS_DOMAIN = "ci-test-" + "".join(chr(random.randint(ord("a"), ord("z"))) for x in range(12)) + random.choice([".noho.st", ".ynh.fr", ".nohost.me"])
TEST_DYNDNS_PASSWORD = "astrongandcomplicatedpassphrasethatisverysecure"
def setup_function(function):
@ -34,7 +38,7 @@ def setup_function(function):
# Clear other domains
for domain in domains:
if domain not in TEST_DOMAINS or domain == TEST_DOMAINS[2]:
if (domain not in TEST_DOMAINS or domain == TEST_DOMAINS[2]) and domain != TEST_DYNDNS_DOMAIN:
# Clean domains not used for testing
domain_remove(domain)
elif domain in TEST_DOMAINS:
@ -65,6 +69,14 @@ def test_domain_add():
assert TEST_DOMAINS[2] in domain_list()["domains"]
def test_domain_add_subscribe():
time.sleep(35) # Dynette blocks requests that happen too frequently
assert TEST_DYNDNS_DOMAIN not in domain_list()["domains"]
domain_add(TEST_DYNDNS_DOMAIN, dyndns_recovery_password=TEST_DYNDNS_PASSWORD)
assert TEST_DYNDNS_DOMAIN in domain_list()["domains"]
def test_domain_add_existing_domain():
with pytest.raises(MoulinetteError):
assert TEST_DOMAINS[1] in domain_list()["domains"]
@ -77,6 +89,14 @@ def test_domain_remove():
assert TEST_DOMAINS[1] not in domain_list()["domains"]
def test_domain_remove_unsubscribe():
time.sleep(35) # Dynette blocks requests that happen too frequently
assert TEST_DYNDNS_DOMAIN in domain_list()["domains"]
domain_remove(TEST_DYNDNS_DOMAIN, dyndns_recovery_password=TEST_DYNDNS_PASSWORD)
assert TEST_DYNDNS_DOMAIN not in domain_list()["domains"]
def test_main_domain():
current_main_domain = _get_maindomain()
assert domain_main_domain()["current_main_domain"] == current_main_domain

View file

@ -17,7 +17,9 @@ from yunohost import app, domain, user
from yunohost.utils.form import (
OPTIONS,
ask_questions_and_parse_answers,
DisplayTextOption,
BaseChoicesOption,
BaseInputOption,
BaseReadonlyOption,
PasswordOption,
DomainOption,
WebPathOption,
@ -31,7 +33,7 @@ from yunohost.utils.error import YunohostError, YunohostValidationError
"""
Argument default format:
{
"the_name": {
"the_id": {
"type": "one_of_the_available_type", // "sting" is not specified
"ask": {
"en": "the question in english",
@ -48,7 +50,7 @@ Argument default format:
}
User answers:
{"the_name": "value", ...}
{"the_id": "value", ...}
"""
@ -377,8 +379,7 @@ def _fill_or_prompt_one_option(raw_option, intake):
answers = {id_: intake} if intake is not None else {}
option = ask_questions_and_parse_answers(options, answers)[0]
return (option, option.value)
return (option, option.value if isinstance(option, BaseInputOption) else None)
def _test_value_is_expected_output(value, expected_output):
@ -438,14 +439,14 @@ class BaseTest:
id_ = raw_option["id"]
option, value = _fill_or_prompt_one_option(raw_option, None)
is_special_readonly_option = isinstance(option, DisplayTextOption)
is_special_readonly_option = isinstance(option, BaseReadonlyOption)
assert isinstance(option, OPTIONS[raw_option["type"]])
assert option.type == raw_option["type"]
assert option.name == id_
assert option.id == id_
assert option.ask == {"en": id_}
assert option.readonly is (True if is_special_readonly_option else False)
assert option.visible is None
assert option.visible is True
# assert option.bind is None
if is_special_readonly_option:
@ -489,14 +490,12 @@ class BaseTest:
option, value = _fill_or_prompt_one_option(raw_option, None)
expected_message = option.ask["en"]
choices = []
if option.choices:
choices = (
option.choices
if isinstance(option.choices, list)
else option.choices.keys()
)
expected_message += f" [{' | '.join(choices)}]"
if isinstance(option, BaseChoicesOption):
choices = option.choices
if choices:
expected_message += f" [{' | '.join(choices)}]"
if option.type == "boolean":
expected_message += " [yes | no]"
@ -506,7 +505,7 @@ class BaseTest:
confirm=False, # FIXME no confirm?
prefill=prefill,
is_multiline=option.type == "text",
autocomplete=option.choices or [],
autocomplete=choices,
help=option.help["en"],
)
@ -661,9 +660,7 @@ class TestString(BaseTest):
(" ##value \n \tvalue\n ", "##value \n \tvalue"),
], reason=r"should fail or without `\n`?"),
# readonly
*xfail(scenarios=[
("overwrite", "expected value", {"readonly": True, "default": "expected value"}),
], reason="Should not be overwritten"),
("overwrite", "expected value", {"readonly": True, "current_value": "expected value"}),
]
# fmt: on
@ -700,9 +697,7 @@ class TestText(BaseTest):
(r" ##value \n \tvalue\n ", r"##value \n \tvalue\n"),
], reason="Should not be stripped"),
# readonly
*xfail(scenarios=[
("overwrite", "expected value", {"readonly": True, "default": "expected value"}),
], reason="Should not be overwritten"),
("overwrite", "expected value", {"readonly": True, "current_value": "expected value"}),
]
# fmt: on
@ -736,9 +731,7 @@ class TestPassword(BaseTest):
("secret", FAIL),
*[("supersecret" + char, FAIL) for char in PasswordOption.forbidden_chars], # FIXME maybe add ` \n` to the list?
# readonly
*xpass(scenarios=[
("s3cr3t!!", "s3cr3t!!", {"readonly": True}),
], reason="Should fail since readonly is forbidden"),
("s3cr3t!!", YunohostError, {"readonly": True, "current_value": "isforbidden"}), # readonly is forbidden
]
# fmt: on
@ -779,9 +772,7 @@ class TestColor(BaseTest):
("yellow", "#ffff00"),
], reason="Should work with pydantic"),
# readonly
*xfail(scenarios=[
("#ffff00", "#fe100", {"readonly": True, "default": "#fe100"}),
], reason="Should not be overwritten"),
("#ffff00", "#fe100", {"readonly": True, "current_value": "#fe100"}),
]
# fmt: on
@ -823,9 +814,7 @@ class TestNumber(BaseTest):
(-10, -10, {"default": 10}),
(-10, -10, {"default": 10, "optional": True}),
# readonly
*xfail(scenarios=[
(1337, 10000, {"readonly": True, "default": 10000}),
], reason="Should not be overwritten"),
(1337, 10000, {"readonly": True, "current_value": 10000}),
]
# fmt: on
# FIXME should `step` be some kind of "multiple of"?
@ -890,9 +879,7 @@ class TestBoolean(BaseTest):
"scenarios": all_fails("", "y", "n", error=AssertionError),
},
# readonly
*xfail(scenarios=[
(1, 0, {"readonly": True, "default": 0}),
], reason="Should not be overwritten"),
(1, 0, {"readonly": True, "current_value": 0}),
]
@ -930,9 +917,7 @@ class TestDate(BaseTest):
("12-01-10", FAIL),
("2022-02-29", FAIL),
# readonly
*xfail(scenarios=[
("2070-12-31", "2024-02-29", {"readonly": True, "default": "2024-02-29"}),
], reason="Should not be overwritten"),
("2070-12-31", "2024-02-29", {"readonly": True, "current_value": "2024-02-29"}),
]
# fmt: on
@ -965,9 +950,7 @@ class TestTime(BaseTest):
("23:1", FAIL),
("23:005", FAIL),
# readonly
*xfail(scenarios=[
("00:00", "08:00", {"readonly": True, "default": "08:00"}),
], reason="Should not be overwritten"),
("00:00", "08:00", {"readonly": True, "current_value": "08:00"}),
]
# fmt: on
@ -991,9 +974,7 @@ class TestEmail(BaseTest):
*nones(None, "", output=""),
("\n Abc@example.tld ", "Abc@example.tld"),
# readonly
*xfail(scenarios=[
("Abc@example.tld", "admin@ynh.local", {"readonly": True, "default": "admin@ynh.local"}),
], reason="Should not be overwritten"),
("Abc@example.tld", "admin@ynh.local", {"readonly": True, "current_value": "admin@ynh.local"}),
# Next examples are from https://github.com/JoshData/python-email-validator/blob/main/tests/test_syntax.py
# valid email values
@ -1106,9 +1087,7 @@ class TestWebPath(BaseTest):
("https://example.com/folder", "/https://example.com/folder")
], reason="Should fail or scheme+domain removed"),
# readonly
*xfail(scenarios=[
("/overwrite", "/value", {"readonly": True, "default": "/value"}),
], reason="Should not be overwritten"),
("/overwrite", "/value", {"readonly": True, "current_value": "/value"}),
# FIXME should path have forbidden_chars?
]
# fmt: on
@ -1133,9 +1112,7 @@ class TestUrl(BaseTest):
*nones(None, "", output=""),
("http://some.org/folder/file.txt", "http://some.org/folder/file.txt"),
# readonly
*xfail(scenarios=[
("https://overwrite.org", "https://example.org", {"readonly": True, "default": "https://example.org"}),
], reason="Should not be overwritten"),
("https://overwrite.org", "https://example.org", {"readonly": True, "current_value": "https://example.org"}),
# rest is taken from https://github.com/pydantic/pydantic/blob/main/tests/test_networks.py
# valid
*unchanged(
@ -1425,9 +1402,7 @@ class TestSelect(BaseTest):
]
},
# readonly
*xfail(scenarios=[
("one", "two", {"readonly": True, "choices": ["one", "two"], "default": "two"}),
], reason="Should not be overwritten"),
("one", "two", {"readonly": True, "choices": ["one", "two"], "current_value": "two"}),
]
# fmt: on
@ -1475,9 +1450,7 @@ class TestTags(BaseTest):
*all_fails(*([t] for t in [False, True, -1, 0, 1, 1337, 13.37, [], ["one"], {}]), raw_option={"choices": [False, True, -1, 0, 1, 1337, 13.37, [], ["one"], {}]}),
*all_fails(*([str(t)] for t in [False, True, -1, 0, 1, 1337, 13.37, [], ["one"], {}]), raw_option={"choices": [False, True, -1, 0, 1, 1337, 13.37, [], ["one"], {}]}),
# readonly
*xfail(scenarios=[
("one", "one,two", {"readonly": True, "choices": ["one", "two"], "default": "one,two"}),
], reason="Should not be overwritten"),
("one", "one,two", {"readonly": True, "choices": ["one", "two"], "current_value": "one,two"}),
]
# fmt: on
@ -1525,9 +1498,7 @@ class TestDomain(BaseTest):
("doesnt_exist.pouet", FAIL, {}),
("fake.com", FAIL, {"choices": ["fake.com"]}),
# readonly
*xpass(scenarios=[
(domains1[0], domains1[0], {"readonly": True}),
], reason="Should fail since readonly is forbidden"),
(domains1[0], YunohostError, {"readonly": True}), # readonly is forbidden
]
},
{
@ -1628,9 +1599,7 @@ class TestApp(BaseTest):
(installed_non_webapp["id"], installed_non_webapp["id"]),
(installed_non_webapp["id"], FAIL, {"filter": "is_webapp"}),
# readonly
*xpass(scenarios=[
(installed_non_webapp["id"], installed_non_webapp["id"], {"readonly": True}),
], reason="Should fail since readonly is forbidden"),
(installed_non_webapp["id"], YunohostError, {"readonly": True}), # readonly is forbidden
]
},
]
@ -1747,9 +1716,7 @@ class TestUser(BaseTest):
("", regular_username, {"default": regular_username})
], reason="Should throw 'no default allowed'"),
# readonly
*xpass(scenarios=[
(admin_username, admin_username, {"readonly": True}),
], reason="Should fail since readonly is forbidden"),
(admin_username, YunohostError, {"readonly": True}), # readonly is forbidden
]
},
]
@ -1833,9 +1800,7 @@ class TestGroup(BaseTest):
("", "custom_group", {"default": "custom_group"}),
], reason="Should throw 'default must be in (None, 'all_users', 'visitors', 'admins')"),
# readonly
*xpass(scenarios=[
("admins", "admins", {"readonly": True}),
], reason="Should fail since readonly is forbidden"),
("admins", YunohostError, {"readonly": True}), # readonly is forbidden
]
},
]
@ -1961,7 +1926,7 @@ def test_options_query_string():
)
def _assert_correct_values(options, raw_options):
form = {option.name: option.value for option in options}
form = {option.id: option.value for option in options}
for k, v in results.items():
if k == "file_id":
@ -1993,11 +1958,26 @@ def test_question_string_default_type():
out = ask_questions_and_parse_answers(questions, answers)[0]
assert out.name == "some_string"
assert out.id == "some_string"
assert out.type == "string"
assert out.value == "some_value"
def test_option_default_type_with_choices_is_select():
questions = {
"some_choices": {"choices": ["a", "b"]},
# LEGACY (`choices` in option `string` used to be valid)
# make sure this result as a `select` option
"some_legacy": {"type": "string", "choices": ["a", "b"]}
}
answers = {"some_choices": "a", "some_legacy": "a"}
options = ask_questions_and_parse_answers(questions, answers)
for option in options:
assert option.type == "select"
assert option.value == "a"
@pytest.mark.skip # we should do something with this example
def test_question_string_input_test_ask_with_example():
ask_text = "some question"
@ -2018,75 +1998,6 @@ def test_question_string_input_test_ask_with_example():
assert example_text in prompt.call_args[1]["message"]
def test_question_string_with_choice():
questions = {"some_string": {"type": "string", "choices": ["fr", "en"]}}
answers = {"some_string": "fr"}
out = ask_questions_and_parse_answers(questions, answers)[0]
assert out.name == "some_string"
assert out.type == "string"
assert out.value == "fr"
def test_question_string_with_choice_prompt():
questions = {"some_string": {"type": "string", "choices": ["fr", "en"]}}
answers = {"some_string": "fr"}
with patch.object(Moulinette, "prompt", return_value="fr"), patch.object(
os, "isatty", return_value=True
):
out = ask_questions_and_parse_answers(questions, answers)[0]
assert out.name == "some_string"
assert out.type == "string"
assert out.value == "fr"
def test_question_string_with_choice_bad():
questions = {"some_string": {"type": "string", "choices": ["fr", "en"]}}
answers = {"some_string": "bad"}
with pytest.raises(YunohostError), patch.object(os, "isatty", return_value=False):
ask_questions_and_parse_answers(questions, answers)
def test_question_string_with_choice_ask():
ask_text = "some question"
choices = ["fr", "en", "es", "it", "ru"]
questions = {
"some_string": {
"ask": ask_text,
"choices": choices,
}
}
answers = {}
with patch.object(Moulinette, "prompt", return_value="ru") as prompt, patch.object(
os, "isatty", return_value=True
):
ask_questions_and_parse_answers(questions, answers)
assert ask_text in prompt.call_args[1]["message"]
for choice in choices:
assert choice in prompt.call_args[1]["message"]
def test_question_string_with_choice_default():
questions = {
"some_string": {
"type": "string",
"choices": ["fr", "en"],
"default": "en",
}
}
answers = {}
with patch.object(os, "isatty", return_value=False):
out = ask_questions_and_parse_answers(questions, answers)[0]
assert out.name == "some_string"
assert out.type == "string"
assert out.value == "en"
@pytest.mark.skip # we should do something with this example
def test_question_password_input_test_ask_with_example():
ask_text = "some question"

View file

@ -144,13 +144,14 @@ def _set_hostname(hostname, pretty_hostname=None):
logger.debug(out)
@is_unit_operation()
@is_unit_operation(exclude=["dyndns_recovery_password", "password"])
def tools_postinstall(
operation_logger,
domain,
username,
fullname,
password,
dyndns_recovery_password=None,
ignore_dyndns=False,
force_diskspace=False,
overwrite_root_password=True,
@ -203,9 +204,8 @@ def tools_postinstall(
assert_password_is_strong_enough("admin", password)
# If this is a nohost.me/noho.st, actually check for availability
if not ignore_dyndns and is_yunohost_dyndns_domain(domain):
available = None
dyndns = not ignore_dyndns and is_yunohost_dyndns_domain(domain)
if dyndns:
# Check if the domain is available...
try:
available = _dyndns_available(domain)
@ -213,17 +213,10 @@ def tools_postinstall(
# connectivity or something. Assume that this domain isn't manageable
# and inform the user that we could not contact the dyndns host server.
except Exception:
logger.warning(
m18n.n("dyndns_provider_unreachable", provider="dyndns.yunohost.org")
)
if available:
dyndns = True
# If not, abort the postinstall
raise YunohostValidationError("dyndns_provider_unreachable", provider="dyndns.yunohost.org")
else:
raise YunohostValidationError("dyndns_unavailable", domain=domain)
else:
dyndns = False
if not available:
raise YunohostValidationError("dyndns_unavailable", domain=domain)
if os.system("iptables -V >/dev/null 2>/dev/null") != 0:
raise YunohostValidationError(
@ -235,7 +228,7 @@ def tools_postinstall(
logger.info(m18n.n("yunohost_installing"))
# New domain config
domain_add(domain, dyndns)
domain_add(domain, dyndns_recovery_password=dyndns_recovery_password, ignore_dyndns=ignore_dyndns)
domain_main_domain(domain)
# First user

View file

@ -30,8 +30,11 @@ from moulinette.utils.log import getActionLogger
from yunohost.utils.error import YunohostError, YunohostValidationError
from yunohost.utils.form import (
OPTIONS,
BaseChoicesOption,
BaseInputOption,
BaseOption,
FileOption,
OptionType,
ask_questions_and_parse_answers,
evaluate_simple_js_expression,
)
@ -146,15 +149,17 @@ class ConfigPanel:
if mode == "full":
option["ask"] = ask
question_class = OPTIONS[option.get("type", "string")]
question_class = OPTIONS[option.get("type", OptionType.string)]
# FIXME : maybe other properties should be taken from the question, not just choices ?.
option["choices"] = question_class(option).choices
option["default"] = question_class(option).default
option["pattern"] = question_class(option).pattern
if issubclass(question_class, BaseChoicesOption):
option["choices"] = question_class(option).choices
if issubclass(question_class, BaseInputOption):
option["default"] = question_class(option).default
option["pattern"] = question_class(option).pattern
else:
result[key] = {"ask": ask}
if "current_value" in option:
question_class = OPTIONS[option.get("type", "string")]
question_class = OPTIONS[option.get("type", OptionType.string)]
result[key]["value"] = question_class.humanize(
option["current_value"], option
)
@ -239,7 +244,7 @@ class ConfigPanel:
self.filter_key = ""
self._get_config_panel()
for panel, section, option in self._iterate():
if option["type"] == "button":
if option["type"] == OptionType.button:
key = f"{panel['id']}.{section['id']}.{option['id']}"
actions[key] = _value_for_locale(option["ask"])
@ -421,7 +426,7 @@ class ConfigPanel:
subnode["name"] = key # legacy
subnode.setdefault("optional", raw_infos.get("optional", True))
# If this section contains at least one button, it becomes an "action" section
if subnode.get("type") == "button":
if subnode.get("type") == OptionType.button:
out["is_action_section"] = True
out.setdefault(sublevel, []).append(subnode)
# Key/value are a property
@ -465,20 +470,10 @@ class ConfigPanel:
"max_progression",
]
forbidden_keywords += format_description["sections"]
forbidden_readonly_types = ["password", "app", "domain", "user", "file"]
for _, _, option in self._iterate():
if option["id"] in forbidden_keywords:
raise YunohostError("config_forbidden_keyword", keyword=option["id"])
if (
option.get("readonly", False)
and option.get("type", "string") in forbidden_readonly_types
):
raise YunohostError(
"config_forbidden_readonly_type",
type=option["type"],
id=option["id"],
)
return self.config
@ -506,13 +501,13 @@ class ConfigPanel:
# Hydrating config panel with current value
for _, section, option in self._iterate():
if option["id"] not in self.values:
allowed_empty_types = [
"alert",
"display_text",
"markdown",
"file",
"button",
]
allowed_empty_types = {
OptionType.alert,
OptionType.display_text,
OptionType.markdown,
OptionType.file,
OptionType.button,
}
if section["is_action_section"] and option.get("default") is not None:
self.values[option["id"]] = option["default"]
@ -526,7 +521,7 @@ class ConfigPanel:
f"Config panel question '{option['id']}' should be initialized with a value during install or upgrade.",
raw_msg=True,
)
value = self.values[option["name"]]
value = self.values[option["id"]]
# Allow to use value instead of current_value in app config script.
# e.g. apps may write `echo 'value: "foobar"'` in the config file (which is more intuitive that `echo 'current_value: "foobar"'`
@ -593,7 +588,7 @@ class ConfigPanel:
section["options"] = [
option
for option in section["options"]
if option.get("type", "string") != "button"
if option.get("type", OptionType.string) != OptionType.button
or option["id"] == action
]
@ -605,14 +600,14 @@ class ConfigPanel:
prefilled_answers.update(self.new_values)
questions = ask_questions_and_parse_answers(
{question["name"]: question for question in section["options"]},
{question["id"]: question for question in section["options"]},
prefilled_answers=prefilled_answers,
current_values=self.values,
hooks=self.hooks,
)
self.new_values.update(
{
question.name: question.value
question.id: question.value
for question in questions
if question.value is not None
}

File diff suppressed because it is too large Load diff

View file

@ -25,6 +25,7 @@ import subprocess
from typing import Dict, Any, List, Union
from moulinette import m18n
from moulinette.utils.text import random_ascii
from moulinette.utils.process import check_output
from moulinette.utils.log import getActionLogger
from moulinette.utils.filesystem import mkdir, chown, chmod, write_to_file
@ -679,6 +680,7 @@ class SystemuserAppResource(AppResource):
##### Properties
- `allow_ssh`: (default: False) Adds the user to the ssh.app group, allowing SSH connection via this user
- `allow_sftp`: (default: False) Adds the user to the sftp.app group, allowing SFTP connection via this user
- `allow_email`: (default: False) Enable authentication on the mail stack for the system user and send mail using `__APP__@__DOMAIN__`. A `mail_pwd` setting is automatically defined (similar to `db_pwd` for databases). You can then configure the app to use `__APP__` and `__MAIL_PWD__` as SMTP credentials (with host 127.0.0.1). You can also tweak the user-part of the domain-part of the email used by manually defining a custom setting `mail_user` or `mail_domain`
- `home`: (default: `/var/www/__APP__`) Defines the home property for this user. NB: unfortunately you can't simply use `__INSTALL_DIR__` or `__DATA_DIR__` for now
##### Provision/Update
@ -702,6 +704,7 @@ class SystemuserAppResource(AppResource):
default_properties: Dict[str, Any] = {
"allow_ssh": False,
"allow_sftp": False,
"allow_email": False,
"home": "/var/www/__APP__",
}
@ -709,9 +712,13 @@ class SystemuserAppResource(AppResource):
allow_ssh: bool = False
allow_sftp: bool = False
allow_email: bool = False
home: str = ""
def provision_or_update(self, context: Dict = {}):
from yunohost.app import regen_mail_app_user_config_for_dovecot_and_postfix
# FIXME : validate that no yunohost user exists with that name?
# and/or that no system user exists during install ?
@ -756,7 +763,25 @@ class SystemuserAppResource(AppResource):
f"sed -i 's@{raw_user_line_in_etc_passwd}@{new_raw_user_line_in_etc_passwd}@g' /etc/passwd"
)
# Update mail-related stuff
if self.allow_email:
mail_pwd = self.get_setting("mail_pwd")
if not mail_pwd:
mail_pwd = random_ascii(24)
self.set_setting("mail_pwd", mail_pwd)
regen_mail_app_user_config_for_dovecot_and_postfix()
else:
self.delete_setting("mail_pwd")
if os.system(f"grep --quiet ' {self.app}$' /etc/postfix/app_senders_login_maps") == 0 \
or os.system(f"grep --quiet '^{self.app}:' /etc/dovecot/app-senders-passwd") == 0:
regen_mail_app_user_config_for_dovecot_and_postfix()
def deprovision(self, context: Dict = {}):
from yunohost.app import regen_mail_app_user_config_for_dovecot_and_postfix
if os.system(f"getent passwd {self.app} >/dev/null 2>/dev/null") == 0:
os.system(f"deluser {self.app} >/dev/null")
if os.system(f"getent passwd {self.app} >/dev/null 2>/dev/null") == 0:
@ -771,6 +796,11 @@ class SystemuserAppResource(AppResource):
f"Failed to delete system user for {self.app}", raw_msg=True
)
self.delete_setting("mail_pwd")
if os.system(f"grep --quiet ' {self.app}$' /etc/postfix/app_senders_login_maps") == 0 \
or os.system(f"grep --quiet '^{self.app}:' /etc/dovecot/app-senders-passwd") == 0:
regen_mail_app_user_config_for_dovecot_and_postfix()
# FIXME : better logging and error handling, add stdout/stderr from the deluser/delgroup commands...
@ -1065,9 +1095,11 @@ class AptDependenciesAppResource(AppResource):
if isinstance(values.get("packages"), str):
values["packages"] = [value.strip() for value in values["packages"].split(",")] # type: ignore
if not isinstance(values.get("repo"), str) \
or not isinstance(values.get("key"), str) \
or not isinstance(values.get("packages"), list):
if (
not isinstance(values.get("repo"), str)
or not isinstance(values.get("key"), str)
or not isinstance(values.get("packages"), list)
):
raise YunohostError(
"In apt resource in the manifest: 'extras' repo should have the keys 'repo', 'key' defined as strings and 'packages' defined as list",
raw_msg=True,
@ -1076,12 +1108,14 @@ class AptDependenciesAppResource(AppResource):
def provision_or_update(self, context: Dict = {}):
script = " ".join(["ynh_install_app_dependencies", *self.packages])
for repo, values in self.extras.items():
script += "\n" + " ".join([
"ynh_install_extra_app_dependencies",
f"--repo='{values['repo']}'",
f"--key='{values['key']}'",
f"--package='{' '.join(values['packages'])}'"
])
script += "\n" + " ".join(
[
"ynh_install_extra_app_dependencies",
f"--repo='{values['repo']}'",
f"--key='{values['key']}'",
f"--package='{' '.join(values['packages'])}'",
]
)
# FIXME : we're feeding the raw value of values['packages'] to the helper .. if we want to be consistent, may they should be comma-separated, though in the majority of cases, only a single package is installed from an extra repo..
self._run_script("provision_or_update", script)
@ -1311,8 +1345,6 @@ class DatabaseAppResource(AppResource):
self.set_setting("db_pwd", db_pwd)
if not db_pwd:
from moulinette.utils.text import random_ascii
db_pwd = random_ascii(24)
self.set_setting("db_pwd", db_pwd)

View file

@ -8,7 +8,7 @@ deps =
py311-black-{run,check}: black
py311-mypy: mypy >= 0.900
commands =
py311-lint: flake8 src doc maintenance tests --ignore E402,E501,E203,W503,E741 --exclude src/vendor
py311-lint: flake8 src doc maintenance tests --ignore E402,E501,E203,W503,E741 --exclude src/tests,src/vendor
py311-invalidcode: flake8 src bin maintenance --exclude src/tests,src/vendor --select F,E722,W605
py311-black-check: black --check --diff bin src doc maintenance tests
py311-black-run: black bin src doc maintenance tests