Wrong PostInstallScript in deb #95

Open
opened 2026-01-29 16:29:22 +00:00 by claunia · 0 comments
Owner

Originally created by @Mammonth on GitHub (Dec 28, 2020).

Something is wrong in postinstall script handling.
Lines in project file:
ips=$(hostname -I | tr " " "," | sed 's/,$/ /' | tr " " "\n")
cn="$(hostname -f),$(hostname -I | tr " " "," | sed 's/,$/ /' | tr " " "\n")"
turned into:
ips=
cn=","
inside a .deb's postinst.
deb was built using dotnet msbuild /t:CreateDeb project.csproj
under Ubuntu 20.04.1 LTS

Originally created by @Mammonth on GitHub (Dec 28, 2020). Something is wrong in postinstall script handling. Lines in project file: `ips=$(hostname -I | tr " " "," | sed 's/,$/ /' | tr " " "\n")` `cn="$(hostname -f),$(hostname -I | tr " " "," | sed 's/,$/ /' | tr " " "\n")"` turned into: `ips=` `cn=","` inside a .deb's postinst. deb was built using `dotnet msbuild /t:CreateDeb project.csproj` under Ubuntu 20.04.1 LTS
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#95