1
0
This commit is contained in:
2023-09-14 14:46:03 +08:00
parent 58e3d5124c
commit eb7f33c477
4 changed files with 19 additions and 1 deletions

View File

@@ -54,6 +54,7 @@ cp -f systemd/adb.service ${RPM_BUILD_ROOT}/lib/systemd/system/adb.service
# 安装完成后执行
%post
if [ ! -e "${RedisConfDir}/redis.conf" ]; then cp ${RedisConfDir}/default/redis.conf ${RedisConfDir}; fi
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