new
This commit is contained in:
17
debbuild/DEBIAN/postinst
Normal file
17
debbuild/DEBIAN/postinst
Normal file
@@ -0,0 +1,17 @@
|
||||
# !/bin/sh
|
||||
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 ""
|
||||
|
||||
systemctl enable restagent.service
|
||||
systemctl enable crontask.service
|
||||
systemctl daemon-reload
|
||||
if ! id -u omc >/dev/null 2>&1 ; then
|
||||
useradd -d /opt/omc -m -s /bin/bash -p1000ftp@kp omc;
|
||||
mkdir -p /opt/omc/ftp
|
||||
else
|
||||
echo "user omc exist";
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user