dataset/seed/dotclear/templates/dotclear.service
2022-12-25 17:11:04 +01:00

18 lines
597 B
Desktop File

[Unit]
Description=Dotclear management
After=risotto.target
Before=nginx.service php-fpm.service
[Service]
Type=oneshot
ExecStart=/usr/bin/cp -f /usr/local/share/dotclear/var/.htaccess /srv/dotclear/var/
ExecStart=/usr/bin/cp -f /usr/local/share/dotclear/cache/.htaccess /srv/dotclear/cache/
ExecStart=/usr/bin/cp -f /usr/local/share/dotclear/plugins/.htaccess /srv/dotclear/plugins/
ExecStart=/usr/bin/rm -rf /srv/dotclear/plugins/*
ExecStart=/bin/bash -c '/usr/bin/cp -fr /usr/local/share/dotclear/plugins/* /srv/dotclear/plugins/'
User=nginx
Group=nginx
[Install]
WantedBy=multi-user.target