1
0
Fork 0
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:
Kayou 2019-03-20 01:07:02 +01:00
parent 9419b1e137
commit 4cd46fe39f
No known key found for this signature in database
GPG key ID: 823A2CBE071D3126

View file

@ -45,7 +45,13 @@ then # Si final_path n'est pas renseigné dans la config yunohost, cas d'ancien
final_path=/var/www/$app
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
ynh_psql_test_if_first_run
db_name=$(ynh_sanitize_dbid "$app")
@ -60,11 +66,6 @@ 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
#=================================================