Provide private import storage on APT upgrades
This commit is contained in:
1 parent
880b62e3d8
commit
ccf7c544ea
4 files changed
+11
-4
No files matched your search
@@ -9,7 +9,8 @@ Type=exec
|
|||||||
User=coulobre-panel
|
User=coulobre-panel
|
||||||
Group=coulobre-panel
|
Group=coulobre-panel
|
||||||
SupplementaryGroups=coulobre-mail-provisioning
|
SupplementaryGroups=coulobre-mail-provisioning
|
||||||
ReadWritePaths=-/var/lib/coulobre-panel-imports
|
StateDirectory=coulobre-panel-imports
|
||||||
|
StateDirectoryMode=0700
|
||||||
EnvironmentFile=/etc/coulobre/panel.env
|
EnvironmentFile=/etc/coulobre/panel.env
|
||||||
WorkingDirectory=/opt/coulobre
|
WorkingDirectory=/opt/coulobre
|
||||||
UMask=0077
|
UMask=0077
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
StateDirectory=coulobre-panel-imports
|
||||||
|
StateDirectoryMode=0700
|
||||||
+5
-3
@@ -1534,9 +1534,11 @@ not modify or promote the live site.
|
|||||||
|
|
||||||
### Import WordPress from a ZIP or TAR export
|
### Import WordPress from a ZIP or TAR export
|
||||||
|
|
||||||
New installer-managed panels already have a private WordPress upload inbox.
|
New installer-managed panels have a private upload inbox for WordPress and
|
||||||
APT and web upgrades preserve the installed panel unit. If you are enabling
|
DirectAdmin imports. Starting with Core 1.10, APT upgrades supply the inbox
|
||||||
imports on an upgraded panel and the unit does not list
|
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-imports` in `systemctl show -p StateDirectory
|
||||||
coulobre-panel.service`, add the inbox with `sudo systemctl edit
|
coulobre-panel.service`, add the inbox with `sudo systemctl edit
|
||||||
coulobre-panel.service`:
|
coulobre-panel.service`:
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ def build_package(source, wheel, ref, output):
|
|||||||
units = root / "usr/lib/systemd/system"
|
units = root / "usr/lib/systemd/system"
|
||||||
units.mkdir(parents=True)
|
units.mkdir(parents=True)
|
||||||
for name in (
|
for name in (
|
||||||
|
"coulobre-panel.service.d/import-storage.conf",
|
||||||
"coulobre-directadmin-import-worker.service",
|
"coulobre-directadmin-import-worker.service",
|
||||||
"coulobre-directadmin-restore.socket",
|
"coulobre-directadmin-restore.socket",
|
||||||
"coulobre-directadmin-restore@.service",
|
"coulobre-directadmin-restore@.service",
|
||||||
|
|||||||
Reference in new issue
Block a user