From 8c58dc119113c30f401c9bf933eab4d931b85ecd Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 10 Jan 2024 18:12:15 +0800 Subject: [PATCH] fix: postinst update --- debbuild/22.04/DEBIAN/postinst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index b1afb50..d7798c5 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -61,11 +61,11 @@ fi if [ ! -e "${FERootDir}/config.js" ]; then cp ${FERootDir}/default/config.js ${FERootDir}; fi -#for LogoFile in ${LogoFileList}; do -# if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then -# cp ${OMCStaticDir}/agt.d/logo/${LogoFile} ${OMCStaticDir}/logo; -# fi -#done +for LogoFile in ${LogoFileList}; do + if [ ! -e "${OMCStaticDir}/logo/${LogoFile}" ]; then + cp ${OMCStaticDir}/agt.d/logo/${LogoFile} ${OMCStaticDir}/logo; + fi +done if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -pomc123 omc; mkdir -p /opt/omc/ftp