initial commit of file from CVS for smeserver-unifi on Sat Sep 7 21:10:32 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 21:10:32 +10:00
parent dae8118fe8
commit 599ba506da
19 changed files with 376 additions and 2 deletions

44
createlinks Executable file
View File

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