mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Mail au mainteneur
This commit is contained in:
parent
b38ee6a125
commit
57e7ad899b
1 changed files with 5 additions and 3 deletions
|
@ -936,17 +936,19 @@ fi
|
||||||
|
|
||||||
if [ "$level" -eq 0 ] && [ -e "$script_dir/../config" ]
|
if [ "$level" -eq 0 ] && [ -e "$script_dir/../config" ]
|
||||||
then # Si l'app est au niveau 0, et que le test tourne en CI, envoi un mail d'avertissement.
|
then # Si l'app est au niveau 0, et que le test tourne en CI, envoi un mail d'avertissement.
|
||||||
dest=$(grep "dest=" "$script_dir/../config" | cut -d= -f2) # Récupère le destinataire du mail de CI
|
dest=$(cat "$APP_CHECK/manifest.json" | grep '\"email\": ' | cut -d '"' -f 4) # Utilise l'adresse du mainteneur de l'application
|
||||||
ci_path=$(grep "CI_URL=" "$script_dir/../config" | cut -d= -f2)
|
ci_path=$(grep "CI_URL=" "$script_dir/../config" | cut -d= -f2)
|
||||||
if [ -n "$ci_path" ]; then
|
if [ -n "$ci_path" ]; then
|
||||||
message="$message sur $ci_path"
|
message="$message sur $ci_path"
|
||||||
fi
|
fi
|
||||||
mail -s "Échec d'installation d'une application dans le CI" "$dest" <<< "$message" # Envoi un avertissement par mail.
|
mail -s "[YunoHost] Échec d'installation d'une application dans le CI" "$dest" <<< "$message" # Envoi un avertissement par mail.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Le log complet des installations et suppressions est disponible dans le fichier $COMPLETE_LOG"
|
echo "Le log complet des installations et suppressions est disponible dans le fichier $COMPLETE_LOG"
|
||||||
# Clean
|
# Clean
|
||||||
rm -f "$OUTPUTD" "$temp_RESULT" "$script_dir/url_output" "$script_dir/curl_print" "$script_dir/manifest_extract"
|
rm -f "$OUTPUTD" "$temp_RESULT" "$script_dir/url_output" "$script_dir/curl_print" "$script_dir/manifest_extract"
|
||||||
|
|
||||||
|
if [ -n "$APP_CHECK" ]; then
|
||||||
sudo rm -rf "$APP_CHECK"
|
sudo rm -rf "$APP_CHECK"
|
||||||
|
fi
|
||||||
sudo rm "$script_dir/pcheck.lock" # Retire le lock
|
sudo rm "$script_dir/pcheck.lock" # Retire le lock
|
||||||
|
|
Loading…
Add table
Reference in a new issue