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:
parent
35a49573d2
commit
b9aea8224e
1 changed files with 2 additions and 2 deletions
|
@ -33,9 +33,9 @@ get__csv_sep(){
|
||||||
}
|
}
|
||||||
|
|
||||||
set__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"
|
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"
|
sed -i "s/define(\"CSV_SEP\",.*);/define(\"CSV_SEP\", \" \");/" "$install_dir/config.php"
|
||||||
else
|
else
|
||||||
sed -i "s/define(\"CSV_SEP\",.*);/define(\"CSV_SEP\", \";\");/" "$install_dir/config.php"
|
sed -i "s/define(\"CSV_SEP\",.*);/define(\"CSV_SEP\", \";\");/" "$install_dir/config.php"
|
||||||
|
|
Loading…
Reference in a new issue