diff --git a/scripts/install b/scripts/install index 040cc90..b3ad97a 100755 --- a/scripts/install +++ b/scripts/install @@ -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}" diff --git a/scripts/upgrade b/scripts/upgrade index b53201e..2d68f78 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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}"