Skip to content

Commit

Permalink
fix(ruby): copy scripts to /var/log/agama-installation
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Oct 18, 2024
1 parent 73f830f commit 55a6455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion service/lib/agama/storage/finisher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def copy_agama_scripts

Yast.import "Installation"
require "fileutils"
logs_dir = File.join(Yast::Installation.destdir, "var", "log", "agama")
logs_dir = File.join(Yast::Installation.destdir, "var", "log", "agama-installation")
FileUtils.mkdir_p(logs_dir)
FileUtils.cp_r(SCRIPTS_DIR, logs_dir)
end
Expand Down
3 changes: 2 additions & 1 deletion service/test/agama/storage/manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@

it "copies the artifacts to the installed system" do
storage.finish
expect(File).to exist(File.join(tmp_dir, "mnt", "var", "log", "agama", "scripts"))
expect(File).to exist(File.join(tmp_dir, "mnt", "var", "log", "agama-installation",
"scripts"))
end
end

Expand Down

0 comments on commit 55a6455

Please sign in to comment.