initial commit of file from CVS for smeserver-nginx on Sat Sep 7 20:47:08 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:47:08 +10:00
parent 13dd540648
commit 3437b27773
25 changed files with 887 additions and 2 deletions

27
createlinks Normal file
View File

@@ -0,0 +1,27 @@
#!/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');