On 06/18/2018 05:22 PM, Robert Schweikert wrote:
There is something wrong with the logic. OBS does an install test, not an "upgrade", so the services that get replaced are not running and thus the new service should not be started. The service should only be started and enabled on package upgrade.
I thought that as well, but according to the documentation, "$1" is equal to "2" for upgrades and that's what I am testing: if [ "$1" == "2" ]; then service google-network-daemon start fi This fails during build. However, when I add testing for "/.buildenv" as suggested by Marcus, it works: if [ "$1" == "2" ] && ! [ -e /.buildenv ]; then service google-network-daemon start fi Adrian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org