#!/usr/bin/perl -w use esmith::Build::CreateLinks qw(:all); templates2events("/etc/pydio/bootstrap_plugins.php", qw(webapps-update bootstrap-console-save)); templates2events("/var/cache/pydio/diag_result.php", qw(webapps-update bootstrap-console-save)); templates2events("/var/cache/pydio/first_run_passed", qw(webapps-update bootstrap-console-save)); templates2events("/var/cache/pydio/admin_counted", qw(webapps-update bootstrap-console-save)); templates2events("/etc/e-smith/sql/init/pydio", qw(webapps-update bootstrap-console-save)); templates2events("/etc/pydio/bootstrap_repositories.php", qw(webapps-update bootstrap-console-save share-create share-delete share-modify share-modify-servers)); templates2events("/var/lib/pydio/plugins/auth.serial/roles.ser", qw(webapps-update bootstrap-console-save share-create share-delete share-modify share-modify-servers)); templates2events("/var/lib/pydio/plugins/auth.serial/users.ser", qw(webapps-update bootstrap-console-save user-create user-delete)); templates2events("/var/lib/pydio/plugins/conf.serial/plugins_configs.ser", qw(webapps-update bootstrap-console-save)); templates2events("/var/lib/pydio/plugins/boot.conf/bootstrap.json", qw(webapps-update bootstrap-console-save)); safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/pydio/bootstrap_plugins.php/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/pydio/bootstrap_plugins.php/template-end"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/template-end"); safe_symlink("/etc/e-smith/templates-default/template-begin-php", "root/etc/e-smith/templates/var/cache/pydio/diag_result.php/template-begin"); safe_symlink("/etc/e-smith/templates-default/template-end-php", "root/etc/e-smith/templates/var/cache/pydio/diag_result.php/template-end"); safe_touch("root/etc/e-smith/templates/var/cache/pydio/first_run_passed/template-begin"); safe_touch("root/etc/e-smith/templates/var/cache/pydio/admin_counted/template-begin"); event_link("pydio-user-rights", "webapps-update", "85"); event_link("pydio-user-rights", "share-create", "85"); event_link("pydio-user-rights", "share-delete", "85"); event_link("pydio-user-rights", "share-modify", "85"); event_link("pydio-user-rights", "share-modify-servers", "85"); event_link("pydio-user-rights", "user-delete", "85"); event_link("pydio-user-rights", "group-create", "85"); event_link("pydio-user-rights", "group-modify", "85"); event_link("pydio-user-rights", "group-delete", "85"); event_link("pydio-user-rights", "user-modify-admin", "85"); safe_touch("root/etc/e-smith/templates/var/lib/pydio/plugins/auth.serial/roles.ser/template-begin"); safe_touch("root/etc/e-smith/templates/var/lib/pydio/plugins/auth.serial/users.ser/template-begin"); safe_touch("root/etc/e-smith/templates/var/lib/pydio/plugins/conf.serial/plugins_configs.ser/template-begin"); safe_touch("root/etc/e-smith/templates/var/lib/pydio/plugins/boot.conf/bootstrap.json/template-begin");