From bda154909204c7db9d7257d60f7204dd2dc5fda7 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Wed, 30 Aug 2023 10:42:11 +0800 Subject: [PATCH] n --- debbuild/DEBIAN/postinst | 4 +++- debbuild/DEBIAN/postrm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 0dce485..fcdbbac 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -3,13 +3,15 @@ echo "" echo "* To start/stop/restart rest agent service run:" echo " sudo systemctl start/stop/restart restagent.service" echo " sudo systemctl start/stop/restart crontask.service" +echo " sudo systemctl start/stop/restart sshsvc.service" echo "" systemctl enable restagent.service systemctl enable crontask.service +systemctl enable sshsvc.service systemctl daemon-reload if ! id -u omc >/dev/null 2>&1 ; then - useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc; + useradd -d /opt/omc -m -s /bin/bash -pomc123 omc; mkdir -p /opt/omc/ftp else echo "user omc exist"; diff --git a/debbuild/DEBIAN/postrm b/debbuild/DEBIAN/postrm index d7feec8..a8455db 100644 --- a/debbuild/DEBIAN/postrm +++ b/debbuild/DEBIAN/postrm @@ -1,4 +1,4 @@ -# !/bin/bash +# !/bin/sh #systemctl stop nginx.service systemctl stop restagent.service