From f03bb14143a99a4331930d0db8af9ffbb2637020 Mon Sep 17 00:00:00 2001 From: avollkopf <43980694+avollkopf@users.noreply.github.com> Date: Thu, 19 Oct 2023 07:45:05 +0200 Subject: [PATCH] next onewire setup test --- cbpi/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cbpi/cli.py b/cbpi/cli.py index d57a3c2..ab7d6dd 100644 --- a/cbpi/cli.py +++ b/cbpi/cli.py @@ -50,7 +50,9 @@ class CraftBeerPiCli(): f.write(line) destfile="/boot/config.txt" + #copy and remove afterwards as mv will work, but raise an error message due to different file owners shutil.os.system('sudo cp "{}" "{}"'.format(configtempfile,destfile)) + shutil.os.system('rm -rf "{}"'.format(configtempfile)) print("/boot/config.txt created")