diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index fbe5c0f..d7abe47 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -7,6 +7,7 @@ X86Lib64Dir=/lib/x86_64-linux-gnu OmcBinDir=/usr/local/omc/bin UsrLocalBinDir=/usr/local/bin OmcDaemon=omcd +NginxConfDir=/etc/nginx/conf.d CFileList="restconf.yaml crontask.yaml tasks.yaml sshsvc.yaml capconf.yaml" echo "" @@ -62,6 +63,10 @@ if ! id -u omc >/dev/null 2>&1 ; then else echo "user omc exist"; fi +if [ ! -e "${NginxConfDir}/omc.conf" ]; then + mkdir -p ${NginxConfDir} + cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir}; +fi sudo systemctl restart adb.service sudo systemctl restart restagent.service sudo systemctl restart crontask.service diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index fbe5c0f..14f4557 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -62,6 +62,10 @@ if ! id -u omc >/dev/null 2>&1 ; then else echo "user omc exist"; fi +if [ ! -e "${NginxConfDir}/omc.conf" ]; then + mkdir -p ${NginxConfDir} + cp -f ${OMCEtcDir}/nginx/omc.conf ${NginxConfDir}; +fi sudo systemctl restart adb.service sudo systemctl restart restagent.service sudo systemctl restart crontask.service