1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

fix database: unbound variable

This commit is contained in:
Tagada 2023-05-28 22:16:28 +02:00
parent 810c3facfa
commit b5f4e50ff9

View file

@ -21,7 +21,7 @@ upgrade_type=$(ynh_check_app_version_changed)
ynh_script_progression --message="Ensuring downward compatibility..."
# 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
database="mysql"
else