From 9046f4daa706dfb36724e4d5c4e4bbbd05a519ae Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 30 Apr 2025 11:16:48 +0800 Subject: [PATCH] fix> ... --- rpmbuild/SPECS/omc.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rpmbuild/SPECS/omc.spec b/rpmbuild/SPECS/omc.spec index c3e82b9..9cc1d65 100644 --- a/rpmbuild/SPECS/omc.spec +++ b/rpmbuild/SPECS/omc.spec @@ -68,8 +68,12 @@ done if ! id -u omc >/dev/null 2>&1 ; then useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; else echo "user omc exist"; fi mkdir -p /opt/omc/ftp mkdir -p /opt/omc/ftp/log -cd ${UsrLocalBinDir} -if [ ! -e ${OMCDaemon} ]; then ln -s ${OMCBinDir}/omcsvc.sh ${OMCDaemon}; fi + +if [ ! -e ${UsrLocalBinDir}/${OMCDaemon} ]; then + echo -n "Creating symbolic link ${UsrLocalBinDir}/${OMCDaemon} ... " + ln -s ${OMCBinDir}/omcsvc.sh ${UsrLocalBinDir}/${OMCDaemon}; + echo "done" +fi # setting firewall port_list="80 443 44080 44443 33030 33443 3066 6379 22222"