diff --git a/doc/ADMIN.md b/doc/ADMIN.md index d225ede..d06e571 100644 --- a/doc/ADMIN.md +++ b/doc/ADMIN.md @@ -1 +1,2 @@ -* Prosody will not replace the XMPP service Metronome integrated in YunoHost, it has been implemented for some specific apps that require Prosody +* Prosody will not replace the XMPP service Metronome integrated in YunoHost, it has been implemented for some specific apps that require Prosody. + diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md new file mode 100644 index 0000000..c7dc3e4 --- /dev/null +++ b/doc/ADMIN_fr.md @@ -0,0 +1 @@ +* Prosody ne remplacera pas le service XMPP Metronome intégré à YunoHost, il a été implémenté pour certaines applications spécifiques nécessitant Prosody. diff --git a/doc/DESCRIPTION_fr.md b/doc/DESCRIPTION_fr.md new file mode 100644 index 0000000..4a56cf4 --- /dev/null +++ b/doc/DESCRIPTION_fr.md @@ -0,0 +1 @@ +Prosody est un serveur de communication XMPP moderne. Il vise à être facile à installer et à configurer, et efficace avec les ressources système. De plus, pour les développeurs, il vise à être facile à étendre et à fournir un système flexible sur lequel développer rapidement des fonctionnalités supplémentaires ou prototyper de nouveaux protocoles. diff --git a/manifest.toml b/manifest.toml index 3e50d56..674510f 100644 --- a/manifest.toml +++ b/manifest.toml @@ -19,8 +19,11 @@ code = "https://hg.prosody.im/" yunohost = ">= 11.2" architectures = "all" multi_instance = false + ldap = false + sso = false + disk = "50M" ram.build = "50M" ram.runtime = "50M" diff --git a/scripts/remove b/scripts/remove index 789306d..01bcae1 100755 --- a/scripts/remove +++ b/scripts/remove @@ -14,8 +14,8 @@ source /usr/share/yunohost/helpers #================================================= # REMOVE SERVICE INTEGRATION IN YUNOHOST #================================================= +ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 -# Remove the service from the list of services known by YunoHost (added from `yunohost service add`) if ynh_exec_warn_less yunohost service status $app >/dev/null then ynh_script_progression --message="Removing $app service integration..." @@ -33,7 +33,7 @@ ynh_remove_logrotate #================================================= # REMOVE VARIOUS FILES #================================================= -ynh_script_progression --message="Removing various files..." +ynh_script_progression --message="Removing various files..." --weight=1 # Remove a directory securely ynh_secure_remove --file="$config_path" @@ -50,7 +50,7 @@ ynh_secure_remove --file="/usr/bin/prosody-migrator" #================================================= # ENABLE METRONOME #================================================= -ynh_script_progression --message="Enabling Metronome..." +ynh_script_progression --message="Enabling Metronome..." --weight=1 if systemctl list-unit-files metronome.service &>/dev/null then @@ -62,4 +62,4 @@ fi # END OF SCRIPT #================================================= -ynh_script_progression --message="Removal of $app completed" +ynh_script_progression --message="Removal of $app completed" --last diff --git a/scripts/restore b/scripts/restore index 7e82900..554f380 100755 --- a/scripts/restore +++ b/scripts/restore @@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers #================================================= # DISABLE METRONOME #================================================= -ynh_script_progression --message="Disabling Metronome..." +ynh_script_progression --message="Disabling Metronome..." --weight=1 if systemctl list-unit-files metronome.service &>/dev/null then @@ -24,7 +24,7 @@ fi #================================================= # RESTORE THE CONFIG DIR #================================================= -ynh_script_progression --message="Restoring the config directory..." +ynh_script_progression --message="Restoring the config directory..." --weight=1 ynh_restore_file --origin_path="$config_path" @@ -48,7 +48,7 @@ chmod 750 "$config_path/certs" #================================================= # RESTORE THE DATA DIRECTORY #================================================= -ynh_script_progression --message="Restoring the data directory..." +ynh_script_progression --message="Restoring the data directory..." --weight=1 ynh_restore_file --origin_path="$data_dir" --not_mandatory ynh_restore_file --origin_path="/var/lib/$app" --not_mandatory @@ -59,7 +59,7 @@ chown -R $app:$app "/var/lib/$app" #================================================= # RESTORE SYSTEMD #================================================= -ynh_script_progression --message="Restoring the systemd configuration..." +ynh_script_progression --message="Restoring the systemd configuration..." --weight=1 ynh_restore_file --origin_path="/etc/systemd/system/$app.service" systemctl enable $app.service --quiet @@ -67,7 +67,7 @@ systemctl enable $app.service --quiet #================================================= # RESTORE THE LOGROTATE CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the logrotate configuration..." +ynh_script_progression --message="Restoring the logrotate configuration..." --weight=1 mkdir -p "/var/log/$app" chmod 750 "/var/log/$app" @@ -79,14 +79,14 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= # INTEGRATE SERVICE IN YUNOHOST #================================================= -ynh_script_progression --message="Integrating service in YunoHost..." +ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 yunohost service add $app --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." +ynh_script_progression --message="Starting a systemd service..." --weight=1 ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" @@ -96,4 +96,4 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap # END OF SCRIPT #================================================= -ynh_script_progression --message="Restoration completed for $app" +ynh_script_progression --message="Restoration completed for $app" --last