#!/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); safe_symlink("/etc/e-smith/web/functions/wrapper","root/etc/e-smith/web/panels/manager/cgi-bin/durep"); #-------------------------------------------------- # actions for post-upgrade: #-------------------------------------------------- $event = "post-upgrade"; event_link("durep-init", $event, "90"); #-------------------------------------------------- # actions for smeserver-durep-update event: #-------------------------------------------------- $event = "smeserver-durep-update"; event_link("navigation-conf", $event, "50"); event_link("durep-init", $event, "90"); templates2events("/etc/crontab", $event ); safe_symlink('restart', "root/etc/e-smith/events/$event/services2adjust/smanager"); event_link('navigation2-conf', "$event", '80'); event_link('routes2-conf', "$event", '80'); event_link('locales2-conf', "$event", '80'); safe_symlink('/etc/e-smith/web/panels/manager/html/durep/bar.png', 'root/usr/share/smanager/themes/default/public/images/bar.png'); use esmith::Build::Backup qw(:all); backup_includes("smeserver-durep", qw( /var/lib/durep ));