21 lines
488 B
SYSTEMD
21 lines
488 B
SYSTEMD
|
[Unit]
|
||
|
Description=Nextcloud management
|
||
|
After=postgresqlclient.service
|
||
|
Before=apache.service php-fpm.service
|
||
|
|
||
|
[Service]
|
||
|
Type=oneshot
|
||
|
WorkingDirectory=/usr/share/nextcloud
|
||
|
#FIXME
|
||
|
ExecStart=+/usr/bin/chmod +w /etc/nextcloud/config.php
|
||
|
ExecStart=/etc/nextcloud/nextcloud.init
|
||
|
ExecStart=/usr/bin/php occ files:scan --all -q
|
||
|
ExecStart=/usr/bin/php occ maintenance:repair -q
|
||
|
ExecStart=+/usr/bin/chmod -w /etc/nextcloud/config.php
|
||
|
User=apache
|
||
|
Group=apache
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|