8
0
mirror of https://github.com/key-networks/ztncui.git synced 2024-08-31 04:28:00 +00:00

RPM/DEB scripts and systemd service file

This commit is contained in:
Key Networks
2018-01-05 11:36:55 +08:00
parent d8174f3b5b
commit 04c3d55227
8 changed files with 38 additions and 16 deletions

View File

@@ -1,11 +1,6 @@
#!/bin/bash
ETC='/opt/key-networks/ztncui/etc'
echo "Copying default password file..."
cp -v $ETC/default.passwd $ETC/passwd
if [ $? -eq 0 ]; then
exit 0
else
exit 1
fi
cp -pv $ETC/default.passwd $ETC/passwd
echo "Enabling and starting ztncui service..."
systemctl enable ztncui > /dev/null 2>&1
systemctl start ztncui > /dev/null 2>&1