fix: use -c flag with su

pull/9659/head
Peter Siegel 2025-01-31 22:21:04 +01:00
parent 297f3c0f9a
commit fe0add095c
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Connection(ConnectionBase):
host=self._host(),
)
exec_cmd.extend(
[self.get_option("lxd_become_method"), self.get_option("remote_user")]
[self.get_option("lxd_become_method"), self.get_option("remote_user"), "-c"]
)
exec_cmd.extend([self.get_option("executable"), "-c", cmd])