1
0
Fork 0
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:
Kayou 2019-03-26 23:14:32 +01:00
parent ec1d4ea794
commit 122686e78f
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -45,13 +45,7 @@ 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")
@ -66,6 +60,11 @@ 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
#================================================= #=================================================