From e73bb75dfcf9189cbf463ecdc88e58dc5a516a63 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 20 Dec 2023 19:44:59 +0800 Subject: [PATCH] fix: control and postinst add option1/option2 --- debbuild/22.04/DEBIAN/control | 2 ++ debbuild/22.04/DEBIAN/postinst | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/debbuild/22.04/DEBIAN/control b/debbuild/22.04/DEBIAN/control index 5b22e00..3b6aaa7 100644 --- a/debbuild/22.04/DEBIAN/control +++ b/debbuild/22.04/DEBIAN/control @@ -6,3 +6,5 @@ Architecture: amd64 Maintainer: Simon Zhangsz Depends: Description: OMC +Custom-opt1: ba +Custom-opt2: ba diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index ce09d5b..792af32 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -1,4 +1,11 @@ -# !/bin/sh +# !/bin/bash +set -e + +custom_opt1=$1 +custom_opt2=$2 + +echo "Custom option 1: $custom_opt1" +echo "Custom option 2: $custom_opt2" RedisConfDir=/usr/local/db/bin/conf OMCEtcDir=/usr/local/omc/etc