initial commit of file from CVS for smeserver-phpvirtualbox on Sat Sep 7 20:54:21 AEST 2024
This commit is contained in:
31
createlinks
Executable file
31
createlinks
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/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
|
||||
#));
|
Reference in New Issue
Block a user