smeserver-phpmyadmin/createlinks

32 lines
1.2 KiB
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
for my $event (qw(
bootstrap-console-save
console-save
))
{
templates2events("/etc/phpMyAdmin/config.inc.php", $event);
templates2events("/etc/e-smith/sql/init/phpmyadmin", $event);
}
for my $event (qw(
phpmyadmin-update
smeserver-phpmyadmin-update
))
{
templates2events("/etc/httpd/conf/httpd.conf", $event);
templates2events("/etc/phpMyAdmin/config.inc.php", $event);
templates2events("/etc/e-smith/sql/init/phpmyadmin", $event);
templates2events("/etc/opt/remi/php74/php-fpm.d/www.conf", $event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init");;
safe_symlink("sigusr1", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
safe_symlink("reload-or-restart", "root/etc/e-smith/events/$event/services2adjust/php74-php-fpm");
}
# PHP header and footer
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/phpMyAdmin/config.inc.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/phpMyAdmin/config.inc.php/template-end");