initial commit of file from CVS for smeserver-virtualbox on Sat Sep 7 21:14:17 AEST 2024
This commit is contained in:
34
createlinks
Executable file
34
createlinks
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/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-virtualbox-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/default/virtualbox
|
||||
/etc/dar/DailyBackup.dcf
|
||||
/etc/systemd/system-preset/49-koozali.preset
|
||||
/usr/lib/systemd/system/vboxdrv.service.d/50koozali.conf
|
||||
/usr/lib/systemd/system/vboxweb-service.service.d/50koozali.conf
|
||||
))
|
||||
{
|
||||
templates2events( $file, $event );
|
||||
};
|
||||
#create vboxweb runtime user (vbox) and set/reset password
|
||||
#create default vboxusers group, if it doesn't exist
|
||||
event_link('vbox_create_vboxweb_runtime_user', $event, '04');
|
||||
#install/re-install extension pack on any update
|
||||
event_link('vbox_install_extension_pack', $event, '04');
|
||||
#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, 'vboxdrv' => 'restart', 'vboxweb-service' => 'restart');
|
||||
|
||||
backup_includes("smeserver-virtualbox", qw(
|
||||
/home/vbox
|
||||
));
|
Reference in New Issue
Block a user