1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dont-code_ynh.git synced 2024-09-03 18:26:34 +02:00

no local in script

This commit is contained in:
Gérard Collin 2024-04-01 14:44:15 +02:00
parent db2dc42863
commit 29526f4d0c
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ chown -R $app:www-data "$data_dir"
ynh_script_progression --message="Adding a configuration file..." --weight=1
# Let's create all databases needed, and assign them to the user
local new_db_pwd=$(ynh_string_random) # Generate a random password
new_db_pwd=$(ynh_string_random) # Generate a random password
# If $db_pwd is not provided, use new_db_pwd instead for db_pwd
db_pwd="${db_pwd:-$new_db_pwd}"

View file

@ -40,7 +40,7 @@ if [ -z "${tenant+x}" ]; then
ynh_app_setting_set --app="$app" --key=tenant --value="$tenant"
fi
local new_db_pwd=$(ynh_string_random) # Generate a random password
new_db_pwd=$(ynh_string_random) # Generate a random password
# If $db_pwd is not provided, use new_db_pwd instead for db_pwd
db_pwd="${db_pwd:-$new_db_pwd}"