smeserver-phpmyadmin/createlinks
Jean-Philippe Pialasse f6c881995c * Thu Mar 06 2025 Jean-Philippe Pialasse <jpp@koozali.org> 5.2.1-2.sme
- SME11 build [SME: 12736]
  fix csp,  templates cleanup
  upgrade to php 8.3 (8.4 not supported yet)
- Wrong Servers output [SME: 12516]
2025-03-06 22:38:40 -05:00

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/php83/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/php83-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");