diff --git a/pkg/deb/DEBIAN/postinst b/pkg/deb/DEBIAN/postinst index b301de4..adb7b68 100644 --- a/pkg/deb/DEBIAN/postinst +++ b/pkg/deb/DEBIAN/postinst @@ -48,6 +48,8 @@ else cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml fi + # Stop Service + systemctl daemon-reload systemctl stop omc.service bash $RootDir/script/setup.sh -u if [ $? -ne 0 ]; then diff --git a/pkg/rpm/SPECS/omc.spec b/pkg/rpm/SPECS/omc.spec index 5f0f12e..167d72a 100644 --- a/pkg/rpm/SPECS/omc.spec +++ b/pkg/rpm/SPECS/omc.spec @@ -80,6 +80,8 @@ else cp -rf $RootDir/default/omc.yaml $RootDir/omc.yaml fi + # Stop Service + systemctl daemon-reload systemctl stop omc.service bash $RootDir/script/setup.sh -u if [ $? -ne 0 ]; then