mirror of
https://github.com/YunoHost-Apps/lufi_ynh.git
synced 2024-09-03 19:36:28 +02:00
Revert "Don't create psql db if useing sqlite"
This reverts commit 4cd46fe39f
.
This commit is contained in:
parent
ec1d4ea794
commit
122686e78f
1 changed files with 6 additions and 7 deletions
|
@ -45,13 +45,7 @@ then # Si final_path n'est pas renseigné dans la config yunohost, cas d'ancien
|
|||
final_path=/var/www/$app
|
||||
fi
|
||||
|
||||
|
||||
# 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
|
||||
if [ -z "$db_pwd" ]; then
|
||||
# Create postgresql database
|
||||
ynh_psql_test_if_first_run
|
||||
db_name=$(ynh_sanitize_dbid "$app")
|
||||
|
@ -66,6 +60,11 @@ if [ -z "$max_file_size" ]; then
|
|||
max_file_size=100 # 100 Mo
|
||||
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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue