From 3f9c8d1c925ef082380e79c75bbcdfcd2584070a Mon Sep 17 00:00:00 2001
From: "aleksandr.vodianov" <aleksandr.vodianov@demlabs.net>
Date: Wed, 3 Nov 2021 14:55:02 +0300
Subject: [PATCH] fixed publish link

---
 linux/debian/scripts/deploy.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/linux/debian/scripts/deploy.sh b/linux/debian/scripts/deploy.sh
index 4cd6cf3..3ff6ada 100755
--- a/linux/debian/scripts/deploy.sh
+++ b/linux/debian/scripts/deploy.sh
@@ -33,7 +33,9 @@ for pkgfile in $PKGFILES; do
 		echo "REF_NAME is $CI_COMMIT_REF_NAME"
 		ssh -i $CELLFRAME_REPO_KEY "$CELLFRAME_FILESERVER_CREDS" "mkdir -p $CELLFRAME_FILESERVER_PATH/$SUBDIR"
 		scp -i $CELLFRAME_REPO_KEY $wd/$PACKAGE_PATH/$pkgname$MOD.deb "$CELLFRAME_FILESERVER_CREDS:$CELLFRAME_FILESERVER_PATH/$SUBDIR/$pkgname_public$MOD.deb"
-		scp -r -i $CELLFRAME_REPO_KEY ../prod_build/general/essentials/$pkgname_weblink "$CELLFRAME_FILESERVER_CREDS:$CELLFRAME_FILESERVER_PATH/$SUBDIR/"
+		if [[ $(echo $pkgname | grep "pgsql\|dbg") == "" ]]
+			scp -r -i $CELLFRAME_REPO_KEY ../prod_build/general/essentials/$pkgname_weblink "$CELLFRAME_FILESERVER_CREDS:$CELLFRAME_FILESERVER_PATH/$SUBDIR/"
+		fi
 		if [[ $CI_COMMIT_REF_NAME == "master" ]]; then
 set -x
 			scp -P $REPO_PORT -i $CELLFRAME_REPO_KEY $wd/$PACKAGE_PATH/$pkgname$MOD.deb "$CELLFRAME_REPO_CREDS:~/aptly/repo_update/$pkgname_public$MOD.deb"
-- 
GitLab