diff --git a/scripts/change_url b/scripts/change_url index e8914e3..b553134 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -110,7 +110,7 @@ ynh_script_progression --message="Updating systemd configuration..." --weight=1 if [ $change_path -eq 1 ] then ynh_replace_string --match_string=$old_path --replace_string=$new_path --target_file="/etc/systemd/system/$app.service" - systemctl deamon-reload + systemctl daemon-reload fi #================================================= diff --git a/scripts/restore b/scripts/restore index 799696a..62f167d 100644 --- a/scripts/restore +++ b/scripts/restore @@ -85,6 +85,8 @@ systemctl enable $app.service --quiet #================================================= ynh_script_progression --message="Restoring the redis configuration..." --weight=1 +ynh_install_app_dependencies redis-server redis-tools + ynh_restore_file --origin_path="/etc/systemd/system/redis-$app.service" systemctl enable "redis-$app.service" --quiet diff --git a/scripts/upgrade b/scripts/upgrade index d0cca62..e6a6717 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -35,6 +35,8 @@ fi upgrade_type=$(ynh_check_app_version_changed) +ynh_install_app_dependencies redis-server redis-tools + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #=================================================