Fedora now includes a packaged version of Nextcloud. This will be _much_ easier to maintain than the tarball-based distribution method. There are some minor differences in how the Fedora package works, compared to the upstream tarball. Notably, it puts the configuration file in `/etc/` and makes it read-only, and it stores persistent data separate from the application. These differences require modifications to the Apache and PHP-FPM configuration, but the package also included examples to make this easier. Since the `config.php` is read-only now, it has to be managed by the configuration policy; it cannot be modified by the Administration web UI.
18 lines
409 B
YAML
18 lines
409 B
YAML
- name: restart php-fpm
|
|
service:
|
|
name: php-fpm
|
|
state: restarted
|
|
- name: reload httpd
|
|
service:
|
|
name: httpd
|
|
state: reloaded
|
|
listen: certificate changed
|
|
- name: upgrade nextcloud
|
|
become: true
|
|
become_user: apache
|
|
command: php /var/www/html/occ upgrade
|
|
- name: update nextcloud .htaccess
|
|
become: true
|
|
become_user: apache
|
|
command: php /var/www/html/occ maintenance:update:htaccess
|