1
0

fix: postinst update

This commit is contained in:
2024-01-10 18:12:15 +08:00
parent 1bbdd3fab9
commit 8c58dc1191

View File

@@ -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