1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/moncycle_ynh.git synced 2024-09-03 19:46:16 +02:00

Update config

This commit is contained in:
Limezy 2024-02-23 09:22:29 +07:00
parent e09897d25b
commit 35a49573d2

View file

@ -33,9 +33,9 @@ get__csv_sep(){
}
set__csv_sep(){
if [ $csv_sep == "Utiliser le séparateur ," ]; then
if [ $csv_sep = "Utiliser le séparateur ," ]; then
sed -i "s/define(\"CSV_SEP\",.*);/define(\"CSV_SEP\", \",\");/" "$install_dir/config.php"
elif [ $csv_sep == "Utiliser un espace" ]; then
elif [ $csv_sep = "Utiliser un espace" ]; then
sed -i "s/define(\"CSV_SEP\",.*);/define(\"CSV_SEP\", \" \");/" "$install_dir/config.php"
else
sed -i "s/define(\"CSV_SEP\",.*);/define(\"CSV_SEP\", \";\");/" "$install_dir/config.php"