Compare commits

...

3 Commits

Author SHA1 Message Date
fee56ed714 Fix: appsettings.json getting overwritten on upgrade
Some checks failed
build-debian-package / Build the debian package (push) Failing after 4m7s
2026-01-30 13:21:36 +01:00
7c0e5f7e03 Remove: submodule 2026-01-30 13:21:15 +01:00
18f396f51b Move alumnihub-build-directory 2026-01-30 13:21:00 +01:00
10 changed files with 14 additions and 9 deletions

4
.gitmodules vendored
View File

@@ -1,5 +1,5 @@
[submodule "alumnihub_10.0_amd64/opt/alumnihub-helpers"]
path = alumnihub_10.0_amd64/opt/alumnihub-helpers
[submodule "alumnihub/opt/alumnihub-helpers"]
path = alumnihub/opt/alumnihub-helpers
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Customer.git
[submodule "oqtane.framework"]
path = oqtane.framework

8
alumnihub/DEBIAN/postinst Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
adduser --system alumnihub
chown -R alumnihub:root /opt/alumnihub
if [ -e /opt/alumnihub/appsettings.json ]; then
cp /opt/alumnihub/appsettings.release.json /opt/alumnihub/appsettings.json
fi

View File

@@ -1,4 +0,0 @@
#!/bin/bash
adduser --system alumnihub
chown -R alumnihub:root /opt/alumnihub

View File

@@ -7,7 +7,7 @@ echo "Building oqtane.framework"
dotnet restore ./oqtane.framework/Oqtane.slnx
dotnet build ./oqtane.framework/Oqtane.slnx --no-restore
dotnet build -c Release ./oqtane.framework/Oqtane.slnx --no-restore
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub_10.0_amd64/opt/alumnihub --no-restore
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore
mkdir -p ./oqtane.framework/Oqtane.Server/Packages
@@ -22,7 +22,9 @@ do
dotnet publish -c Release ./$module/*.slnx --no-restore
done
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub_10.0_amd64/opt/alumnihub/Packages
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
rm ./alumnihub/opt/alumnihub/appsettings.json
echo $VERSION $DEBIAN_PACKAGE_PATH