smeserver-nginx/createlinks

28 lines
660 B
Plaintext
Raw Normal View History

#!/usr/bin/perl
use strict;
use esmith::Build::CreateLinks qw(:all);
my $pkg = "smeserver-nginx";
my $event = "${pkg}-update";
event_actions($event, qw(
systemd-default 88
systemd-reload 89
));
event_templates($event, qw(
/etc/nginx/nginx.conf
));
event_services($event, qw(
nginx restart
));
#use esmith::Build::Backup qw(:all);
#backup_includes($pkg, qw( ));
templates2events("/etc/nginx/nginx.conf", qw( remoteaccess-update post-upgrade webapps-update) );
event_services("remoteaccess-update", 'nginx' => 'reload-or-restart');
event_services("webapps-update", 'nginx' => 'reload-or-restart');