smeserver-phpvirtualbox/createlinks

32 lines
1.1 KiB
Perl
Executable File

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
#use esmith::Build::Backup qw(:all);
# our event specific for updating with yum without reboot
$event = 'smeserver-phpvirtualbox-update';
#add here the path to your templates needed to expand
#see the /etc/systemd/system-preset/49-koozali.preset should be present for systemd integration on all you yum update event
foreach my $file (qw(
/etc/httpd/conf/httpd.conf
/etc/opt/remi/php74/php-fpm.d/www.conf
/etc/samba/smb.conf
/opt/phpvirtualbox/config.php
))
{
templates2events( $file, $event );
};
#we need to expand /opt/phpvirtualbox/config.php when changing the vboxweb runtime user passwd
templates2events( '/opt/phpvirtualbox/config.php', 'smeserver-virtualbox-update');
#action needed in case we have a systemd unit
#event_link('systemd-default', $event, '10');
#event_link('systemd-reload', $event, '50');
#services we need to restart
event_services($event, 'httpd-e-smith' => 'restart', 'php74-php-fpm' => 'restart', 'smbd' => 'restart');
#backup_includes("smeserver-virtualbox", qw(
#/home/e-smith/files/users/vbox
#));