45 lines
729 B
Plaintext
45 lines
729 B
Plaintext
|
#!/usr/bin/perl -w
|
||
|
|
||
|
use esmith::Build::CreateLinks qw(:all);
|
||
|
|
||
|
|
||
|
#service_link_enhanced("unifi", "S85", "7");
|
||
|
|
||
|
|
||
|
foreach $event (qw(remoteaccess-update))
|
||
|
{
|
||
|
safe_symlink('restart', "root/etc/e-smith/events/$event/services2adjust/unifi");
|
||
|
}
|
||
|
|
||
|
foreach $event (qw(smeserver-unifi-install))
|
||
|
{
|
||
|
event_link("upgrade_unifi_controller.sh", $event, "20");
|
||
|
}
|
||
|
|
||
|
|
||
|
my $pkg= "smeserver-unifi";
|
||
|
my $event = "${pkg}-update";
|
||
|
|
||
|
event_actions($event, qw(
|
||
|
upgrade_unifi_controller.sh 20
|
||
|
systemd-default 88
|
||
|
systemd-reload 89
|
||
|
));
|
||
|
|
||
|
#event_templates($event, qw(
|
||
|
#/etc/httpd/conf/httpd.conf
|
||
|
#));
|
||
|
|
||
|
event_services($event, qw(
|
||
|
unifi restart
|
||
|
));
|
||
|
|
||
|
use esmith::Build::Backup qw(:all);
|
||
|
backup_includes($pkg, qw(
|
||
|
/opt/Unifi
|
||
|
/opt/UniFi_bak
|
||
|
));
|
||
|
|
||
|
|
||
|
exit 0;
|