From 14cc7694184b64cd383cda32544cb95ce31efb90 Mon Sep 17 00:00:00 2001 From: KoCoder Date: Thu, 29 Jan 2026 23:03:41 +0100 Subject: [PATCH] Fix: rights and embed packages into the APT-Package --- alumnihub_10.0_amd64/DEBIAN/postinst | 4 +++- run-build.sh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/alumnihub_10.0_amd64/DEBIAN/postinst b/alumnihub_10.0_amd64/DEBIAN/postinst index dc1ef30..29aff8c 100755 --- a/alumnihub_10.0_amd64/DEBIAN/postinst +++ b/alumnihub_10.0_amd64/DEBIAN/postinst @@ -1,2 +1,4 @@ #!/bin/bash -adduser --system alumnihub \ No newline at end of file +adduser --system alumnihub + +chown -R alumnihub:root /opt/alumnihub \ No newline at end of file diff --git a/run-build.sh b/run-build.sh index 40b8687..7c63785 100755 --- a/run-build.sh +++ b/run-build.sh @@ -6,6 +6,8 @@ echo "Building oqtane.framework" dotnet restore ./oqtane.framework/Oqtane.slnx dotnet build ./oqtane.framework/Oqtane.slnx +dotnet build -c Release ./oqtane.framework/Oqtane.slnx +dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub_10.0_amd64/opt/alumnihub mkdir -p ./oqtane.framework/Oqtane.Server/Packages @@ -20,8 +22,7 @@ do dotnet publish -c Release ./$module/*.slnx done -dotnet build -c Release ./oqtane.framework/Oqtane.slnx -dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub_10.0_amd64/opt/alumnihub +cp ./oqtane.framework/Oqtane.Server/Packages ./alumnihub_10.0_amd64/opt/alumnihub/Packages echo $VERSION $DEBIAN_PACKAGE_PATH