mirror of
https://github.com/YunoHost-Apps/moncycle_ynh.git
synced 2024-09-03 19:46:16 +02:00
Test
This commit is contained in:
parent
a5e3a54eb8
commit
6fb37b2374
2 changed files with 7 additions and 5 deletions
|
@ -9,9 +9,10 @@ services = [ 'php8.3-fpm']
|
|||
[main.comptes.creation_compte]
|
||||
ask.en = "Enable account creation"
|
||||
ask.fr = "Permettre la création de nouveaux comptes"
|
||||
type = "select"
|
||||
choices = ["true", "false"]
|
||||
default = "true"
|
||||
type = "boolean"
|
||||
yes = true
|
||||
no = false
|
||||
default = true
|
||||
help = "Don't disable account creation before creating one for yourself !"
|
||||
|
||||
[main.comptes.connexion_compte]
|
||||
|
|
|
@ -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"
|
||||
|
||||
}
|
||||
|
||||
get__creation_compte(){
|
||||
|
@ -37,7 +38,7 @@ get__creation_compte(){
|
|||
}
|
||||
|
||||
set__creation_compte(){
|
||||
sed -i "s/define(\"CREATION_COMPTE\",.*);/define(\"CREATION_COMPTE\", \"$creation_compte\");/" "$install_dir/config.php"
|
||||
sed -i "s/define(\"CREATION_COMPTE\",.*);/define(\"CREATION_COMPTE\", $creation_compte);/" "$install_dir/config.php"
|
||||
}
|
||||
|
||||
get__connexion_compte(){
|
||||
|
@ -45,7 +46,7 @@ get__connexion_compte(){
|
|||
}
|
||||
|
||||
set__connexion_compte(){
|
||||
sed -i "s/define(\"CONNEXION_COMPTE\",.*);/define(\"CONNEXION_COMPTE\", \"$connexion_compte\");/" "$install_dir/config.php"
|
||||
sed -i "s/define(\"CONNEXION_COMPTE\",.*);/define(\"CONNEXION_COMPTE\", $connexion_compte);/" "$install_dir/config.php"
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue