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