mirror of
https://github.com/YunoHost-Apps/jenkins_ynh.git
synced 2024-09-03 19:26:18 +02:00
Update ynh_send_readme_to_admin__2
This commit is contained in:
parent
c769699e70
commit
fe10e69c71
1 changed files with 1 additions and 18 deletions
|
@ -72,17 +72,7 @@ ynh_send_readme_to_admin() {
|
||||||
|
|
||||||
Specific information for the application $app.
|
Specific information for the application $app.
|
||||||
|
|
||||||
$(if [ -n "$app_message" ]
|
$(cat "$app_message")"
|
||||||
then
|
|
||||||
cat "$app_message"
|
|
||||||
else
|
|
||||||
echo "...No specific information..."
|
|
||||||
fi)
|
|
||||||
|
|
||||||
---
|
|
||||||
Automatic diagnosis data from YunoHost
|
|
||||||
|
|
||||||
__PRE_TAG1__$(yunohost tools diagnosis | grep -B 100 "services:" | sed '/services:/d')__PRE_TAG2__"
|
|
||||||
|
|
||||||
# Store the message into a file for further modifications.
|
# Store the message into a file for further modifications.
|
||||||
echo "$mail_message" > mail_to_send
|
echo "$mail_message" > mail_to_send
|
||||||
|
@ -103,10 +93,6 @@ __PRE_TAG1__$(yunohost tools diagnosis | grep -B 100 "services:" | sed '/service
|
||||||
# Insert url links tags
|
# Insert url links tags
|
||||||
ynh_replace_string "__URL_TAG1__\(.*\)__URL_TAG2__\(.*\)__URL_TAG3__" "<a href=\"\2\">\1</a>" mail_to_send
|
ynh_replace_string "__URL_TAG1__\(.*\)__URL_TAG2__\(.*\)__URL_TAG3__" "<a href=\"\2\">\1</a>" mail_to_send
|
||||||
|
|
||||||
# Insert pre tags
|
|
||||||
ynh_replace_string "__PRE_TAG1__" "<pre>" mail_to_send
|
|
||||||
ynh_replace_string "__PRE_TAG2__" "<\pre>" mail_to_send
|
|
||||||
|
|
||||||
# Insert finishing HTML tags
|
# Insert finishing HTML tags
|
||||||
echo -e "\n</body>\n</html>" >> mail_to_send
|
echo -e "\n</body>\n</html>" >> mail_to_send
|
||||||
|
|
||||||
|
@ -115,9 +101,6 @@ __PRE_TAG1__$(yunohost tools diagnosis | grep -B 100 "services:" | sed '/service
|
||||||
# Remove URL tags
|
# Remove URL tags
|
||||||
ynh_replace_string "__URL_TAG[1,3]__" "" mail_to_send
|
ynh_replace_string "__URL_TAG[1,3]__" "" mail_to_send
|
||||||
ynh_replace_string "__URL_TAG2__" ": " mail_to_send
|
ynh_replace_string "__URL_TAG2__" ": " mail_to_send
|
||||||
|
|
||||||
# Remove PRE tags
|
|
||||||
ynh_replace_string "__PRE_TAG[1-2]__" "" mail_to_send
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Define binary to use for mail command
|
# Define binary to use for mail command
|
||||||
|
|
Loading…
Reference in a new issue