lib/capistrano/tasks/systemd.rake in capistrano-sidekiq-3.0.0.alpha.1 vs lib/capistrano/tasks/systemd.rake in capistrano-sidekiq-3.0.0.alpha.2

- old
+ new

@@ -1,5 +1,6 @@ +# encoding: UTF-8 # frozen_string_literal: true git_plugin = self namespace :sidekiq do @@ -57,11 +58,11 @@ git_plugin.config_files(role).each do |config_file| git_plugin.execute_systemd("enable", git_plugin.sidekiq_service_file_name(config_file)) end if fetch(:systemctl_user) && fetch(:sidekiq_lingering_user) - execute :loginctl, "enable-linger", fetch(:puma_lingering_user) + execute :loginctl, "enable-linger", fetch(:sidekiq_lingering_user) end end end desc 'Disable Sidekiq systemd service' @@ -72,10 +73,10 @@ end end end def fetch_systemd_unit_path - if fetch(:puma_systemctl_user) == :system + if fetch(:sidekiq_systemctl_user) == :system "/etc/systemd/system/" else home_dir = backend.capture :pwd File.join(home_dir, ".config", "systemd", "user") end