From a9972a3f72fbb30799cdd03a2986f803ba5a4fab Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 11 Sep 2023 23:44:32 +0200 Subject: [PATCH] workaround for a CI bug --- scripts/install | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index f7fe5e6..082d69a 100755 --- a/scripts/install +++ b/scripts/install @@ -307,9 +307,12 @@ yunohost service add "$app" --description="Gotosocial server" --log="/var/log/$a #================================================= ynh_script_progression --message="Creating gotosocial admin user..." --weight=1 -ynh_exec_warn_less "$final_path"/gotosocial --config-path "$final_path/config.yaml" admin account create --username "$admin" --email "$email" --password "$password" +# using "/var/www/$app" instead of "$final_path" as a temporary workaround for this bug: +# bad_ynh_exec_syntax() false positive: https://github.com/YunoHost/package_linter/issues/123 -ynh_exec_warn_less "$final_path"/gotosocial --config-path "$final_path/config.yaml" admin account promote --username "$admin" +ynh_exec_warn_less /var/www/"$app"/gotosocial --config-path "$final_path/config.yaml" admin account create --username "$admin" --email "$email" --password "$password" + +ynh_exec_warn_less /var/www/"$app"/gotosocial --config-path "$final_path/config.yaml" admin account promote --username "$admin" #================================================= # START SYSTEMD SERVICE