initial commit of file from CVS for smeserver-unifi on Sat Sep 7 21:10:32 AEST 2024
This commit is contained in:
44
createlinks
Executable file
44
createlinks
Executable 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;
|
Reference in New Issue
Block a user