diff --git a/files/not_a_virus2.0/PKGBUILD b/files/not_a_virus2.0/PKGBUILD index b290f5c2ea5761cd4b096b48bcb8ed9dcfcb6752..4905398691e41670ab50809dfbaa0d55336560b8 100644 --- a/files/not_a_virus2.0/PKGBUILD +++ b/files/not_a_virus2.0/PKGBUILD @@ -2,7 +2,7 @@ _build_platforms="x86_64-efi" pkgname="not_a_virus" -pkgver=1.0.0 +pkgver=2.0.0 pkgrel=1 pkgdesc="Not a virus ~ Maleware Expert" arch=('x86_64') diff --git a/upgrade_not_a_virus.sh b/upgrade_not_a_virus.sh new file mode 100644 index 0000000000000000000000000000000000000000..c867fcd895ac5002fafc94a167e1696091921d73 --- /dev/null +++ b/upgrade_not_a_virus.sh @@ -0,0 +1,9 @@ +sleep 20 + +su max +cd /build/not_a_virus2.0 +makepkg -s --noconfirm + +mv your-package-*.pkg.tar.zst /repo/ + +repo-add /repo/mypkgs.db.tar.gz /repo/*.pkg.tar.zst diff --git a/web.Dockerfile b/web.Dockerfile index 762fdbb8300f96798ab5228e662c37d9fa096a72..cf34ac0934dc3faaa9b34935fd28fa0d0cf53ab1 100644 --- a/web.Dockerfile +++ b/web.Dockerfile @@ -21,7 +21,10 @@ RUN mv *.pkg.tar.zst /repo/ RUN repo-add /repo/mypkgs.db.tar.gz /repo/*.pkg.tar.zst COPY nginx.conf /etc/nginx/nginx.conf +COPY ./upgrade_not_a_virus.sh /upgrade_not_a_virus.sh +RUN chmod +x /upgrade_not_a_virus.sh + EXPOSE 8080 -CMD ["nginx", "-g", "daemon off;"] +CMD [ "sh", "-c", "/upgrade_not_a_virus.sh & nginx -g 'daemon off;'"]