mirror of
https://github.com/YunoHost-Apps/listmonk_ynh.git
synced 2024-09-03 19:36:15 +02:00
autocreate uploads
This commit is contained in:
parent
f0773968d1
commit
0b50e6619f
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Listmonk: newsletter and mailing list manager
|
Description=Listmonk: newsletter and mailing list manager
|
||||||
Documentation=https://listmonk.app/docs/
|
Documentation=https://listmonk.app/docs/
|
||||||
|
ConditionPathExists=__FINALPATH__/config.toml
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
@ -8,6 +9,8 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
|
ExecStartPre=/usr/bin/mkdir -p "__FINALPATH__/uploads"
|
||||||
|
ExecStartPre=__FINALPATH__/listmonk --config __FINALPATH__/config.toml --upgrade --yes
|
||||||
ExecStart=__FINALPATH__/listmonk
|
ExecStart=__FINALPATH__/listmonk
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue