修改systime的postinst文件

This commit is contained in:
shaozhimin 2022-10-27 15:03:59 +08:00
parent 0e37e11857
commit 18eeb6715c
2 changed files with 10 additions and 3 deletions

10
debian/libkysdk-systime.postinst vendored Normal file
View File

@ -0,0 +1,10 @@
check_env=`systemd-detect-virt`
echo $check_env
if [ $check_env = "docker" ];then
echo "docker env do not start kysdk-systime.service"
else
systemctl daemon-reload
systemctl enable kysdk-systime.service
systemctl restart kysdk-systime.service
fi

3
debian/postinst vendored
View File

@ -1,3 +0,0 @@
systemctl daemon-reload
systemctl enable kysdk-systime.service
systemctl restart kysdk-systime.service