Files
smeserver-openupload/createlinks
Daniel Berteaud f05d6b7521 Initial commit
2012-11-19 09:30:39 +01:00

13 lines
615 B
Perl

#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
# Templates to expand
templates2events("/etc/e-smith/sql/init/openuploaddb", qw(bootstrap-console-save webapps-update));
templates2events("/usr/share/openupload/www/config.inc.php", qw(bootstrap-console-save webapps-update));
# PHP header and footer
safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/usr/share/openupload/www/config.inc.php/template-begin");
safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/usr/share/openupload/www/config.inc.php/template-end");