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

Fix scripts

This commit is contained in:
Salamandar 2023-06-12 15:29:31 +02:00
parent c2f75510cb
commit 3efe6e98f9
2 changed files with 3 additions and 1 deletions

View file

@ -23,6 +23,8 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd
#=================================================
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
python_venv_site_packages=$(__ynh_python_venv_get_site_packages_dir -d "$install_dir/venv")
ynh_change_url_nginx_config
#=================================================

View file

@ -70,7 +70,7 @@ if [[ "$upgrade_from_opt" == "true" ]]; then
fi
# If secret_key doesn't exist, create it
if [ -z "$secret_key" ]; then
if [ -z "${secret_key:-}" ]; then
secret_key=$(ynh_string_random --length=32)
ynh_app_setting_set --app=$app --key=secret_key --value=$secret_key
fi