initial commit of file from CVS for smeserver-madsonic on Sat Sep 7 20:34:52 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:34:52 +10:00
parent ba2b0ad5a4
commit aed0bea1da
25 changed files with 313 additions and 2 deletions

31
createlinks Normal file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
####################
# links to add
# templates to expand
templates2events( "/etc/sysconfig/madsonic" , qw( conf-madsonic bootstrap-console-save console-save post-upgrade));
templates2events( "/etc/httpd/conf/httpd.conf" , qw( conf-madsonic ));
# services to launch on event
safe_symlink("restart", "root/etc/e-smith/events/conf-madsonic/services2adjust/madsonic");
safe_symlink("restart", "root/etc/e-smith/events/conf-madsonic/services2adjust/httpd-e-smith");
my $event= "smeserver-madsonic-update";
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/madsonic");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
templates2events( "/etc/sysconfig/madsonic" , $event);
templates2events( "/etc/httpd/conf/httpd.conf" , $event);
templates2events( "/etc/rsyslog.conf" , $event);
event_actions( $event, "madsonic-fixperms" => "05");
use esmith::Build::Backup qw(:all);
backup_includes("smeserver-madsonic", qw(
/var/madsonic/db/
/var/madsonic/madsonic.properties
/var/madsonic/madsonic.log
/var/madsonic/madsonic_sh.log
));