From 6cd0d63fdc948476ae2710354a2afe9fcb6de548 Mon Sep 17 00:00:00 2001 From: Limezy Date: Fri, 23 Feb 2024 01:00:33 +0700 Subject: [PATCH] Update config --- scripts/config | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/scripts/config b/scripts/config index 848bde2..facdddf 100644 --- a/scripts/config +++ b/scripts/config @@ -25,7 +25,7 @@ ynh_abort_if_errors final_path=$(ynh_app_setting_get $app final_path) pushd "$install_dir/script" - statistiques=$(/usr/bin/php8.3 --define apc.enable_cli=1 stat.php) + statistiques="$(/usr/bin/php8.3 --define apc.enable_cli=1 stat.php)" popd get__csv_sep(){ @@ -56,43 +56,43 @@ set__connexion_compte(){ } get__moncycle_app_nb_compte(){ - grep 'moncycle_app_nb_compte' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_nb_compte \K.*' } get__moncycle_app_nb_session(){ - grep 'moncycle_app_nb_session' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_nb_session \K.*' } get__moncycle_app_visite_mensuel(){ - grep 'moncycle_app_visite_mensuel' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_visite_mensuel \K.*' } get__moncycle_app_visite_hebdo(){ - grep 'moncycle_app_visite_hebdo' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_visite_hebdo \K.*' } get__moncycle_app_visite_jour(){ - grep 'moncycle_app_visite_jour' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_visite_jour \K.*' } get__moncycle_app_nb_compte_actif(){ - grep 'moncycle_app_nb_compte_actif' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_nb_compte_actif \K.*' } get__moncycle_app_pc_compte_actif(){ - grep 'moncycle_app_pc_compte_actif' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_pc_compte_actif \K.*' } get__moncycle_app_nb_compte_avec_totp(){ - grep 'moncycle_app_nb_compte_avec_totp' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_nb_compte_avec_totp \K.*' } get__moncycle_app_nb_compte_actif_billings(){ - grep 'moncycle_app_nb_compte_actif_billings' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_nb_compte_actif_billings \K.*' } get__moncycle_app_pc_compte_actif_billings(){ - grep 'moncycle_app_pc_compte_actif_billings' $statistiques + echo "$statistiques" | grep -Poi 'moncycle_app_pc_compte_actif_billings \K.*' } #=================================================