oops³
This commit is contained in:
parent
8cff6952cb
commit
8657238c52
2 changed files with 4 additions and 4 deletions
|
@ -56,7 +56,7 @@ ram.runtime = "50M"
|
||||||
ask.en = "Do you need a database?"
|
ask.en = "Do you need a database?"
|
||||||
ask.fr = "Avez-vous besoin d'une base de données ?"
|
ask.fr = "Avez-vous besoin d'une base de données ?"
|
||||||
type = "select"
|
type = "select"
|
||||||
choices = [ "none", "mysql, 'posrgresql" ]
|
choices = [ "none", "mysql, 'postgresql" ]
|
||||||
default = "none"
|
default = "none"
|
||||||
|
|
||||||
[resources]
|
[resources]
|
||||||
|
|
|
@ -21,11 +21,11 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||||
|
|
||||||
# If database doesn't exist, create it and remove with_mysql setting
|
# If database doesn't exist, create it and remove with_mysql setting
|
||||||
if [ -z "${database:-}" ]; then
|
if [ -z "$database" ]; then
|
||||||
if [ $with_mysql -eq 1 ]; then
|
if [ $with_mysql -eq 1 ]; then
|
||||||
$database="mysql"
|
database="mysql"
|
||||||
else
|
else
|
||||||
$database="none"
|
database="none"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ynh_app_setting_set --app=$app --key=database --value=$database
|
ynh_app_setting_set --app=$app --key=database --value=$database
|
||||||
|
|
Loading…
Add table
Reference in a new issue