smeserver-phpldapadmin/createlinks

22 lines
787 B
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);
for my $event (qw(
bootstrap-console-save
post-upgrade
console-save
smeserver-phpldapadmin-update
))
{
templates2events("/etc/phpldapadmin/config.php", $event);
templates2events("/etc/httpd/conf/httpd.conf", $event);
}
my $event="smeserver-phpldapadmin-update";
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/phpldapadmin/config.php/template-begin");