initial commit of file from CVS for smeserver-nginx on Sat Sep 7 20:47:08 AEST 2024
This commit is contained in:
27
createlinks
Normal file
27
createlinks
Normal 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');
|
Reference in New Issue
Block a user