Warn if caller deploys old-style soffice daemon

This commit is contained in:
Lance Edgar 2023-01-10 20:40:36 -06:00
parent c8ab84e462
commit 9e0a1cde19

View file

@ -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)