libkysdk-system/debian/libkysdk-systime.postinst

20 lines
1.1 KiB
Plaintext

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
mv /usr/share/locale/zh_CN/LC_MESSAGES/zh_CN.mo /usr/share/locale/zh_CN/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/bo_CN/LC_MESSAGES/bo_CN.mo /usr/share/locale/bo_CN/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/mn/LC_MESSAGES/mn.mo /usr/share/locale/mn/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/zh_HK/LC_MESSAGES/zh_HK.mo /usr/share/locale/zh_HK/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/kk/LC_MESSAGES/kk.mo /usr/share/locale/kk/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/ky/LC_MESSAGES/ky.mo /usr/share/locale/ky/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/de/LC_MESSAGES/de.mo /usr/share/locale/de/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/es/LC_MESSAGES/es.mo /usr/share/locale/es/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/fr/LC_MESSAGES/fr.mo /usr/share/locale/fr/LC_MESSAGES/kysdk-date.mo
mv /usr/share/locale/ug/LC_MESSAGES/ug.mo /usr/share/locale/ug/LC_MESSAGES/kysdk-date.mo