mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Tests
This commit is contained in:
parent
ca7bfb3227
commit
6d3024abb6
3 changed files with 17 additions and 4 deletions
|
@ -20,10 +20,10 @@ define("SMTP_PORT", 25);
|
|||
define("SMTP_MAIL", "__APP__@__DOMAIN__");
|
||||
define("SMTP_PASSWORD", "");
|
||||
|
||||
define("CREATION_COMPTE", true);
|
||||
define("CONNEXION_COMPTE", true);
|
||||
define("CREATION_COMPTE", __CREATION_COMPTE__);
|
||||
define("CONNEXION_COMPTE", __CONNEXION_COMPTE__);
|
||||
|
||||
define("CSV_SEP", ";");
|
||||
define("CSV_SEP", "__CSV_SEP__");
|
||||
|
||||
define("PHP_SECURE_COOKIES", true);
|
||||
|
||||
|
|
|
@ -30,6 +30,7 @@ get__csv_sep(){
|
|||
|
||||
set__csv_sep(){
|
||||
sed -i "s/define(\"CSV_SEP\",.*);/define(\"CSV_SEP\", \"$csv_sep\");/" "$install_dir/config.php"
|
||||
ynh_app_setting_set --app=$app --key=csv_sep --value="$csv_sep"
|
||||
}
|
||||
|
||||
get__creation_compte(){
|
||||
|
@ -38,6 +39,7 @@ get__creation_compte(){
|
|||
|
||||
set__creation_compte(){
|
||||
sed -i "s/define(\"CREATION_COMPTE\",.*);/define(\"CREATION_COMPTE\", $creation_compte);/" "$install_dir/config.php"
|
||||
ynh_app_setting_set --app=$app --key=creation_compte --value="$creation_compte"
|
||||
}
|
||||
|
||||
get__connexion_compte(){
|
||||
|
@ -46,10 +48,12 @@ get__connexion_compte(){
|
|||
|
||||
set__connexion_compte(){
|
||||
sed -i "s/define(\"CONNEXION_COMPTE\",.*);/define(\"CONNEXION_COMPTE\", $connexion_compte);/" "$install_dir/config.php"
|
||||
ynh_app_setting_set --app=$app --key=connexion_compte --value="$connexion_compte"
|
||||
}
|
||||
|
||||
get__statistics(){
|
||||
echo "$(pushd "$install_dir/script" && /usr/bin/php8.3 --define apc.enable_cli=1 stat.php)"
|
||||
#echo "$(pushd "$install_dir/script" && /usr/bin/php8.3 --define apc.enable_cli=1 stat.php)"
|
||||
echo "salut la compagnie"
|
||||
}
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -9,6 +9,15 @@
|
|||
source _common.sh
|
||||
source /usr/share/yunohost/helpers
|
||||
|
||||
creation_compte=true
|
||||
ynh_app_setting_set --app=$app --key=csv_sep --value="$csv_sep"
|
||||
connexion_compte=true
|
||||
ynh_app_setting_set --app=$app --key=creation_compte --value="$creation_compte"
|
||||
csv_sep=";"
|
||||
ynh_app_setting_set --app=$app --key=connexion_compte --value="$connexion_compte"
|
||||
|
||||
|
||||
|
||||
#=================================================
|
||||
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue