• Michael Hanselmann's avatar
    FS-8948 #resolve Handle non-existent config in Debian postinst · 3b4b839e
    Michael Hanselmann 提交于
    When the "freeswitch" package was installed directly on Debian, i.e.
    without one of the meta packages pulling in the vanilla configuration
    (freeswitch-conf-vanilla), the "postinst" script failed:
    
      $ apt-get install freeswitch
      …
      Setting up freeswitch (1.6.6~13~d2d0b328-1~jessie+1) ...
      cp: cannot stat ‘/usr/share/freeswitch/conf/vanilla/*’: No such file
      or directory
      …
    
    With this change the code tests for "freeswitch.xml" before attempting
    to copy the configuration files.
    3b4b839e
freeswitch.postinst 1.2 KB