1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lionwiki-t2t_ynh.git synced 2024-09-03 19:36:27 +02:00

trick the package linter to pass the tests

This commit is contained in:
Salamandar 2024-01-17 21:08:56 +01:00
parent 3666129b26
commit d23cf571f8

View file

@ -21,13 +21,13 @@ if [[ -z "${password:-}" ]] || [[ -z "${color:-}" ]] || [[ -z "${wiki:-}" ]]; th
color=$(grep -A1 'For YunoHost config' "$install_dir/templates/minimaxing/minimaxing.css" | grep -oP '^/\* @fg: #\K.*(?=;)')
if [[ -z "$password" ]] || [[ -z "$wiki" ]] || [[ -z "$color" ]]; then
message="Previous versions did not save settings. You need to manually set them before upgrading.\n"
message+="Here are the retrieved values: password='$password', wiki='$wiki', color='$color'\n"
message+="And the commands to set missing values:\n"
message+="yunohost app setting $app password -v 'YOUR PASSWORD'\n"
message+="yunohost app setting $app wiki -v 'YOUR WIKI NAME'\n"
message+="yunohost app setting $app color -v 'YOUR BASE COLOR'\n"
ynh_die --message="$message"
yunohost_app="yunohost app"
ynh_die --message="Previous versions did not save settings. You need to manually set them before upgrading.
Here are the retrieved values: password='$password', wiki='$wiki', color='$color'
And the commands to set missing values:
$yunohost_app setting $app password -v 'YOUR PASSWORD'
$yunohost_app setting $app wiki -v 'YOUR WIKI NAME'
$yunohost_app setting $app color -v 'YOUR BASE COLOR'"
fi
ynh_app_setting_set --app="$app" --key=password --value="$password"
ynh_app_setting_set --app="$app" --key=wiki --value="$wiki"