diff --git a/deploy/systemd/coulobre-directadmin-import-worker.service b/deploy/systemd/coulobre-directadmin-import-worker.service index d72eb45..bee13d4 100644 --- a/deploy/systemd/coulobre-directadmin-import-worker.service +++ b/deploy/systemd/coulobre-directadmin-import-worker.service @@ -9,7 +9,8 @@ Type=exec User=coulobre-panel Group=coulobre-panel SupplementaryGroups=coulobre-mail-provisioning -ReadWritePaths=-/var/lib/coulobre-panel-imports +StateDirectory=coulobre-panel-imports +StateDirectoryMode=0700 EnvironmentFile=/etc/coulobre/panel.env WorkingDirectory=/opt/coulobre UMask=0077 diff --git a/deploy/systemd/coulobre-panel.service.d/import-storage.conf b/deploy/systemd/coulobre-panel.service.d/import-storage.conf new file mode 100644 index 0000000..42ea9a7 --- /dev/null +++ b/deploy/systemd/coulobre-panel.service.d/import-storage.conf @@ -0,0 +1,3 @@ +[Service] +StateDirectory=coulobre-panel-imports +StateDirectoryMode=0700 diff --git a/docs/deployment.md b/docs/deployment.md index 33aaebf..a12c3b5 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -1534,9 +1534,11 @@ not modify or promote the live site. ### Import WordPress from a ZIP or TAR export -New installer-managed panels already have a private WordPress upload inbox. -APT and web upgrades preserve the installed panel unit. If you are enabling -imports on an upgraded panel and the unit does not list +New installer-managed panels have a private upload inbox for WordPress and +DirectAdmin imports. Starting with Core 1.10, APT upgrades supply the inbox +through a systemd drop-in without replacing local unit overrides. For a +manual or source archive upgrade, or if you override the inbox locally, +check the effective unit. If it does not list `coulobre-panel-imports` in `systemctl show -p StateDirectory coulobre-panel.service`, add the inbox with `sudo systemctl edit coulobre-panel.service`: diff --git a/tools/build_deb.py b/tools/build_deb.py index d7df790..a5c4ce7 100644 --- a/tools/build_deb.py +++ b/tools/build_deb.py @@ -81,6 +81,7 @@ def build_package(source, wheel, ref, output): units = root / "usr/lib/systemd/system" units.mkdir(parents=True) for name in ( + "coulobre-panel.service.d/import-storage.conf", "coulobre-directadmin-import-worker.service", "coulobre-directadmin-restore.socket", "coulobre-directadmin-restore@.service",