48 lines
1.7 KiB
Perl
48 lines
1.7 KiB
Perl
#!/usr/bin/perl -w
|
|
# This script creates the symlinks needed by this RPM
|
|
# Specific support exists to create symlinks within e-smith web "panels"
|
|
# and for links from named "events" directories into the "actions" directory
|
|
use esmith::Build::CreateLinks qw(:all);
|
|
|
|
# Start and stop links
|
|
|
|
|
|
# Events links
|
|
templates2events("/etc/httpd/isoqlog-conf/httpd.conf", qw(bootstrap-console-save conf-userpanel domain-modify domain-create));
|
|
templates2events("/etc/isoqlog.domains", qw(bootstrap-console-save conf-userpanel domain-modify domain-create));
|
|
templates2events("/etc/isoqlog.conf", qw(bootstrap-console-save conf-userpanel domain-modify domain-create));
|
|
|
|
safe_symlink("sigusr1", "root/etc/e-smith/events/conf-userpanel/services2adjust/httpd-isoqlog");
|
|
safe_symlink("sigusr1", "root/etc/e-smith/events/domain-modify/services2adjust/httpd-isoqlog");
|
|
safe_symlink("sigusr1", "root/etc/e-smith/events/logrotate/services2adjust/httpd-isoqlog");
|
|
|
|
|
|
my $event="smeserver-isoqlog-update";
|
|
event_services($event, qw(
|
|
httpd-isoqlog reload-or-restart
|
|
httpd-e-smith reload-or-restart
|
|
));
|
|
templates2events("/etc/httpd/conf/httpd.conf",$event);
|
|
templates2events("/etc/httpd/isoqlog-conf/httpd.conf",$event);
|
|
templates2events("/etc/isoqlog.domains",$event);
|
|
templates2events("/etc/isoqlog.conf",$event);
|
|
|
|
event_actions($event, qw(
|
|
systemd-default 88
|
|
systemd-reload 89
|
|
));
|
|
|
|
#--------------------------------------------------
|
|
# functions for manager panel
|
|
#--------------------------------------------------
|
|
my $panel = "manager";
|
|
|
|
panel_link("Isoqlog", $panel);
|
|
|
|
|
|
#backup
|
|
use esmith::Build::Backup qw(:all);
|
|
backup_includes("smeserver-isoqlog", qw(
|
|
/var/lib/qmailtools/isoqlog/htdocs/
|
|
));
|