Skip to content

Commit

Permalink
debian: prevent opensips from starting at install
Browse files Browse the repository at this point in the history
It's not a good idea to start after installing opensips, because it
hasn't been configured yet
  • Loading branch information
razvancrainea committed Jul 17, 2018
1 parent 9885109 commit b25ed33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packaging/debian/rules
Expand Up @@ -362,7 +362,7 @@ override_dh_strip:
dh_strip --dbg-package=opensips-dbg

override_dh_installinit:
dh_installinit
dh_installinit --no-start # do not start until configured
ifneq ($(INSTALL_PREFIX),)
sed -i -e "s#PATH_EXTRA=#PATH_EXTRA=$(BIN_PREFIX)/sbin:$(BIN_PREFIX)/bin#g" \
$(CURDIR)/debian/opensips/etc/init.d/opensips
Expand All @@ -371,6 +371,9 @@ endif
override_dh_auto_test:
#Disable tests, too old and they are obsolete

override_dh_systemd_start:
dh_systemd_start --no-start # do not start until configured

print-version:
@@echo "Debian version: $(DEBVERSION)"
@@echo "Upstream version: $(UPVERSION)"
Expand Down

0 comments on commit b25ed33

Please sign in to comment.