n
This commit is contained in:
@@ -3,13 +3,15 @@ echo ""
|
|||||||
echo "* To start/stop/restart rest agent service run:"
|
echo "* To start/stop/restart rest agent service run:"
|
||||||
echo " sudo systemctl start/stop/restart restagent.service"
|
echo " sudo systemctl start/stop/restart restagent.service"
|
||||||
echo " sudo systemctl start/stop/restart crontask.service"
|
echo " sudo systemctl start/stop/restart crontask.service"
|
||||||
|
echo " sudo systemctl start/stop/restart sshsvc.service"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
systemctl enable restagent.service
|
systemctl enable restagent.service
|
||||||
systemctl enable crontask.service
|
systemctl enable crontask.service
|
||||||
|
systemctl enable sshsvc.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
if ! id -u omc >/dev/null 2>&1 ; then
|
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
|
mkdir -p /opt/omc/ftp
|
||||||
else
|
else
|
||||||
echo "user omc exist";
|
echo "user omc exist";
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# !/bin/bash
|
# !/bin/sh
|
||||||
|
|
||||||
#systemctl stop nginx.service
|
#systemctl stop nginx.service
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
|
|||||||
Reference in New Issue
Block a user