smeserver-webshare/createlinks

27 lines
739 B
Plaintext
Raw Normal View History

#!/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);
#--------------------------------------------------
# functions for user and manager panel
#--------------------------------------------------
my $panel = "manager";
panel_link("webshare", $panel);
my $event = "smeserver-webshare-update";
event_templates($event, qw(
/etc/httpd/conf/httpd.conf
));
event_services($event, qw(
php-fpm restart
httpd-e-smith restart
));
use esmith::Build::Backup qw(:all);
backup_includes("smeserver-webshare", qw(
/opt/webshare
));