From be3fd8b07afd2f4e33e3c66a0b9725e5b516c384 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sat, 23 Feb 2019 23:21:30 +0100 Subject: [PATCH 1/2] Create .travis.yml --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..94722ed --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: python + +before_install: + - git clone https://github.com/YunoHost/package_linter /tmp/package_linter + +script: +- /tmp/package_linter/package_linter.py ./ From 545be4606784313eeb05e2a02c247c99cd34e2c2 Mon Sep 17 00:00:00 2001 From: Kayou Date: Sat, 2 Mar 2019 00:19:24 +0100 Subject: [PATCH 2/2] Fix package linter --- scripts/upgrade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 0f1246d..9ac91ee 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -71,9 +71,9 @@ if [ -z "$hashed_password" ]; then password=$(ynh_string_random 8) hashed_password=$(echo -n $password | sha256sum | cut -d' ' -f1) - echo "The new version of LSTU provide an admin and a stats area which required a password. - -This password is: $password" > mail_to_send + echo "The new version of LSTU provide an admin and a stats area which required a password." > mail_to_send + echo "" >> mail_to_send + echo "This password is: $password" >> mail_to_send ynh_send_readme_to_admin --app_message="mail_to_send" --type="upgrade"