mirror of
https://github.com/YunoHost-Apps/mattermost_ynh.git
synced 2024-09-03 19:36:29 +02:00
adding quotation marks to password variable (#364)
* --keep plugins and config * Update install * Update upgrade
This commit is contained in:
parent
3c1c33d355
commit
5d2dc7add6
2 changed files with 3 additions and 5 deletions
|
@ -31,7 +31,6 @@ email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||||
password=$YNH_APP_ARG_PASSWORD
|
password=$YNH_APP_ARG_PASSWORD
|
||||||
language=$YNH_APP_ARG_LANGUAGE
|
language=$YNH_APP_ARG_LANGUAGE
|
||||||
team_display_name=$YNH_APP_ARG_TEAM_DISPLAY_NAME
|
team_display_name=$YNH_APP_ARG_TEAM_DISPLAY_NAME
|
||||||
architecture=$YNH_ARCH
|
|
||||||
version=$YNH_APP_ARG_VERSION
|
version=$YNH_APP_ARG_VERSION
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
@ -55,7 +54,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=6
|
||||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||||
ynh_app_setting_set --app=$app --key=admin --value=$admin
|
ynh_app_setting_set --app=$app --key=admin --value=$admin
|
||||||
ynh_app_setting_set --app=$app --key=password --value=$password
|
ynh_app_setting_set --app=$app --key=password --value="$password"
|
||||||
ynh_app_setting_set --app=$app --key=language --value=$language
|
ynh_app_setting_set --app=$app --key=language --value=$language
|
||||||
ynh_app_setting_set --app=$app --key=version --value=$version
|
ynh_app_setting_set --app=$app --key=version --value=$version
|
||||||
ynh_app_setting_set --app=$app --key=team_display_name --value=$team_display_name
|
ynh_app_setting_set --app=$app --key=team_display_name --value=$team_display_name
|
||||||
|
@ -100,7 +99,7 @@ if [ "$version" = "Enterprise" ]; then
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="enterprise"
|
ynh_setup_source --dest_dir="$final_path" --source_id="enterprise"
|
||||||
elif [ "$version" = "Team" ]; then
|
elif [ "$version" = "Team" ]; then
|
||||||
# Get Team binary path
|
# Get Team binary path
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture"
|
ynh_setup_source --dest_dir="$final_path" --source_id="$YNH_ARCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
|
@ -32,7 +32,6 @@ port=$(ynh_app_setting_get --app=$app --key=port)
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
language=$(ynh_app_setting_get --app=$app --key=language)
|
language=$(ynh_app_setting_get --app=$app --key=language)
|
||||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||||
architecture=$YNH_ARCH
|
|
||||||
version=$(ynh_app_setting_get --app=$app --key=version)
|
version=$(ynh_app_setting_get --app=$app --key=version)
|
||||||
data_path=$(ynh_app_setting_get --app=$app --key=data_path)
|
data_path=$(ynh_app_setting_get --app=$app --key=data_path)
|
||||||
|
|
||||||
|
@ -136,7 +135,7 @@ then
|
||||||
if [ "$version" = "Enterprise" ]; then
|
if [ "$version" = "Enterprise" ]; then
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="enterprise"
|
ynh_setup_source --dest_dir="$final_path" --source_id="enterprise"
|
||||||
elif [ "$version" = "Team" ]; then
|
elif [ "$version" = "Team" ]; then
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture"
|
ynh_setup_source --dest_dir="$final_path" --source_id="$YNH_ARCH"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy the admin saved settings and plugins from tmp directory to final path
|
# Copy the admin saved settings and plugins from tmp directory to final path
|
||||||
|
|
Loading…
Add table
Reference in a new issue