mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Don't create psql db if useing sqlite
This commit is contained in:
parent
9419b1e137
commit
4cd46fe39f
1 changed files with 7 additions and 6 deletions
|
@ -45,7 +45,13 @@ then # Si final_path n'est pas renseigné dans la config yunohost, cas d'ancien
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$db_pwd" ]; then
|
|
||||||
|
# If db_manager is empty, use sqlite for a backward compatibility
|
||||||
|
if [ -z "$db_manager" ]; then
|
||||||
|
db_manager="sqlite"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "$db_pwd" && "$db_manager" = "postgresql"]; then
|
||||||
# Create postgresql database
|
# Create postgresql database
|
||||||
ynh_psql_test_if_first_run
|
ynh_psql_test_if_first_run
|
||||||
db_name=$(ynh_sanitize_dbid "$app")
|
db_name=$(ynh_sanitize_dbid "$app")
|
||||||
|
@ -60,11 +66,6 @@ if [ -z "$max_file_size" ]; then
|
||||||
max_file_size=100 # 100 Mo
|
max_file_size=100 # 100 Mo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If db_manager is empty, use sqlite for a backward compatibility
|
|
||||||
if [ -z "$db_manager" ]; then
|
|
||||||
db_manager="sqlite"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue