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