smeserver-onlyoffice/createlinks

63 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

#!/usr/bin/perl
use strict;
use esmith::Build::CreateLinks qw(:all);
my $pkg = "smeserver-onlyoffice";
my $event = "${pkg}-update";
event_actions($event, qw(
smeserver-onlyoffice-conf 20
systemd-default 88
systemd-reload 89
));
event_templates($event, qw(
/etc/nginx/conf.d/ds.conf
/etc/nginx/includes/http-common.conf
/var/lib/pgsql/data/pg_hba.conf
/etc/rc.d/init.d/masq
/etc/httpd/conf/httpd.conf
/etc/nginx/certificate.crt
));
event_services($event, qw(
nginx restart
httpd-e-smith restart
postgresql-13 restart
redis restart
supervisord restart
rabbitmq-server restart
masq restart
ds-docservice restart
ds-metrics restart
ds-converter restart
));
#use esmith::Build::Backup qw(:all);
#backup_includes($pkg, qw( ));
## add to nextcloud-update event
## add to other events
$event = "ssl-update";
event_templates($event, qw(
/etc/nginx/conf.d/ds.conf
/etc/nginx/includes/http-common.conf
/etc/nginx/certificate.crt
));
event_services($event, qw(
nginx restart
));
$event = "nextcloud-update";
event_actions($event, qw(
smeserver-onlyoffice-conf 20
));