mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Statistics
This commit is contained in:
parent
2000f1d468
commit
880e0fe459
2 changed files with 13 additions and 1 deletions
|
@ -31,4 +31,13 @@ services = [ 'php8.3-fpm']
|
|||
ask.fr = "Séparateur pour l'export des données au format csv"
|
||||
type = "tags"
|
||||
choices = [';',',']
|
||||
default = ';'
|
||||
default = ';'
|
||||
|
||||
[main.statistics]
|
||||
name = "Statistiques"
|
||||
|
||||
[main.statistics.statistics]
|
||||
ask.en = "Statistics for the server"
|
||||
ask.fr = "Statistiques du serveur"
|
||||
type = "display_text"
|
||||
readonly = true
|
|
@ -48,6 +48,9 @@ set__connexion_compte(){
|
|||
sed -i "s/define(\"CONNEXION_COMPTE\",.*);/define(\"CONNEXION_COMPTE\", $connexion_compte);/" "$install_dir/config.php"
|
||||
}
|
||||
|
||||
get__statistics(){
|
||||
echo "$(/usr/bin/php8.3 --define apc.enable_cli=1 stat.php)"
|
||||
}
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
|
|
Loading…
Add table
Reference in a new issue