Warn if caller deploys old-style soffice daemon
This commit is contained in:
parent
c8ab84e462
commit
9e0a1cde19
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2019 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -27,6 +27,7 @@ Core Utilities
|
|||
import os
|
||||
import re
|
||||
import tempfile
|
||||
import warnings
|
||||
|
||||
from mako.template import Template
|
||||
|
||||
|
@ -271,6 +272,9 @@ class Deployer(object):
|
|||
"""
|
||||
Deploy a "soffice" (headless LibreOffice) daemon.
|
||||
"""
|
||||
warnings.warn("deploy.soffice_daemon() is deprecated as it only supports "
|
||||
"/etc/init.d scripts. please deploy your own systemd config "
|
||||
"instead, as needed.", DeprecationWarning)
|
||||
if name is None:
|
||||
name = local_path.split('/')[-1]
|
||||
kwargs.setdefault('use_sudo', True)
|
||||
|
|
Loading…
Reference in a new issue