smeserver-tt-rss/createlinks

33 lines
1.1 KiB
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
for my $event (qw(
bootstrap-console-save
smeserver-tt-rss-update
))
{
templates2events("/etc/e-smith/sql/init/tt-rss", $event);
templates2events("/usr/share/tt-rss/config.php", $event);
templates2events("/etc/cron.d/tt-rss", $event);
}
my $event = 'smeserver-tt-rss-update';
# Templates to expand
templates2events("/etc/httpd/conf/httpd.conf", $event);
templates2events("/etc/opt/remi/php74/php-fpm.d/www.conf", $event);
safe_symlink("reload", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/php74-php-fpm");
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/mysql.init");;
# ttrss daemon
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/ttrss");
# PHP header and footer
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/tt-rss/config.php/template-begin");
#<!>safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/tt-rss/config.php/template-end");