Make it possible to manuelly conf Pydio from it's admin interface, and do not override custom settings when expanding templates. For this, you have to set the ManualConf prop to enabled

tags/0.2.5_el5
Daniel Berteaud 11 years ago
parent f089fe75da
commit 84c87e7418
  1. 137
      root/etc/e-smith/templates/var/lib/pydio/plugins/conf.serial/plugins_configs.ser/10All

@ -1,97 +1,76 @@
{ {
use PHP::Serialization qw(serialize); use PHP::Serialization qw(serialize unserialize);
my $data; my $data;
$data->{'core.uploader'}->{'UPLOAD_MAX_SIZE'} = "0"; if ((($pydio->prop('ManualConf') || 'disabled') eq 'enabled') && open CONF, "/var/lib/pydio/plugins/conf.serial/plugins_configs.ser"){
$data->{'core.uploader'}->{'UPLOAD_MAX_NUMBER'} = "50"; $data = <CONF>;
$data->{'gui.ajax'}->{'CUSTOM_WELCOME_MESSAGE'} = $pydio{'WelcomMessage'} || 'Pydio'; close CONF;
$data->{'core.ajaxplorer'}->{'WEBMASTER_EMAIL'} = 'admin@'.$DomainName; $data = unserialize ($data);
$data->{'core.ajaxplorer'}->{'AJXP_TMP_DIR'} = '/var/lib/pydio/tmp'; }
$data->{'core.ajaxplorer'}->{'DEFAULT_LANGUAGE'} = $pydio{'DefaultLanguage'} || 'en';
$data->{'core.ajaxplorer'}->{'APPLICATION_TITLE'} = $pydio{'Title'} || 'Pydio'; $data->{'core.uploader'}->{'UPLOAD_MAX_SIZE'} ||= "0";
$data->{'core.ajaxplorer'}->{'CMDLINE_ACTIVE'} = '__true__'; $data->{'core.uploader'}->{'UPLOAD_MAX_NUMBER'} ||= "50";
$data->{'core.ajaxplorer'}->{'CLI_PHP'} = '/usr/bin/php'; $data->{'gui.ajax'}->{'CUSTOM_WELCOME_MESSAGE'} ||= $pydio{'WelcomMessage'} || 'Pydio';
$data->{'core.ajaxplorer'}->{'WEBMASTER_EMAIL'} ||= 'admin@'.$DomainName;
$data->{'core.ajaxplorer'}->{'AJXP_TMP_DIR'} ||= '/var/lib/pydio/tmp';
$data->{'core.ajaxplorer'}->{'DEFAULT_LANGUAGE'} ||= $pydio{'DefaultLanguage'} || 'en';
$data->{'core.ajaxplorer'}->{'APPLICATION_TITLE'} ||= $pydio{'Title'} || 'Pydio';
$data->{'core.ajaxplorer'}->{'CMDLINE_ACTIVE'} ||= '__true__';
$data->{'core.ajaxplorer'}->{'CLI_PHP'} ||= '/usr/bin/php';
if (($pydio{'PublicShares'} || 'enabled') eq 'enabled'){ if (($pydio{'PublicShares'} || 'enabled') eq 'enabled'){
$data->{'core.ajaxplorer'}->{'PUBLIC_DOWNLOAD_FOLDER'} = '/var/lib/pydio/public'; $data->{'core.ajaxplorer'}->{'PUBLIC_DOWNLOAD_FOLDER'} ||= '/var/lib/pydio/public';
$data->{'core.ajaxplorer'}->{'PUBLIC_DOWNLOAD_URL'} = $pydio{'PublicDownloadUrl'} || "http://$SystemName.$DomainName/ajxppub"; $data->{'core.ajaxplorer'}->{'PUBLIC_DOWNLOAD_URL'} ||= $pydio{'PublicDownloadUrl'} || "http://$SystemName.$DomainName/ajxppub";
} }
$data->{'core.log'} = { $data->{'core.log'}->{'UNIQUE_PLUGIN_INSTANCE'}->{'LOG_FILE_NAME'} ||= 'log_date(\'m-d-y\').txt';
'UNIQUE_PLUGIN_INSTANCE' => { $data->{'core.log'}->{'UNIQUE_PLUGIN_INSTANCE'}->{'LOG_PATH'} ||= '/var/log/pydio/';
'LOG_FILE_NAME' => 'log_date(\'m-d-y\').txt', $data->{'core.log'}->{'UNIQUE_PLUGIN_INSTANCE'}->{'instance_name'} ||= 'log.text';
'LOG_PATH' => '/var/log/pydio/', $data->{'core.log'}->{'UNIQUE_PLUGIN_INSTANCE'}->{'group_switch_value'} ||= 'log.text';
'instance_name' => 'log.text', $data->{'core.log'}->{'UNIQUE_PLUGIN_INSTANCE'}->{'LOG_CHMOD'} ||= '770';
'group_switch_value' => 'log.text',
'LOG_CHMOD' => 770
}
};
$data->{'access.fs'} = { $data->{'access.fs'}->{'HIDE_EXTENSIONS'} ||= 'ser';
'HIDE_EXTENSIONS' => 'ser', $data->{'access.fs'}->{'PROBE_REAL_SIZE'} ||= '__true__';
'PROBE_REAL_SIZE' => '__true__', $data->{'access.fs'}->{'USE_POSIX'} ||= '__true__';
'USE_POSIX' => '__true__',
};
$data->{'core.notifications'} = { $data->{'core.notifications'}->{'UNIQUE_FEED_INSTANCE'}->{'instance_name'} ||= 'feed.sql';
'UNIQUE_FEED_INSTANCE' => { $data->{'core.notifications'}->{'UNIQUE_FEED_INSTANCE'}->{'group_switch_value'} ||= 'feed.sql';
'instance_name' => 'feed.sql', $data->{'core.notifications'}->{'UNIQUE_FEED_INSTANCE'}->{'SQL_DRIVER'}->{'group_switch_value'} ||= 'core';
'group_switch_value' => 'feed.sql', $data->{'core.notifications'}->{'UNIQUE_FEED_INSTANCE'}->{'SQL_DRIVER'}->{'core_driver'} ||= 'core';
'SQL_DRIVER' => { $data->{'core.notifications'}->{'USER_EVENTS'} ||= '__true__';
'group_switch_value' => 'core',
'core_driver' => 'core'
}
},
'USER_EVENTS' => '__true__'
};
$data->{'core.mailer'} = { $data->{'core.mailer'}->{'FROM'} ||= 'pydio@'.$DomainName;
'FROM' => 'pydio@'.$DomainName, $data->{'core.mailer'}->{'BODY_LAYOUT'} ||= 'AJXP_MAIL_BODY';
'BODY_LAYOUT' => 'AJXP_MAIL_BODY', $data->{'core.mailer'}->{'FROM_NAME'} ||= 'Pydio';
'UNIQUE_MAILER_INSTANCE' => { $data->{'core.mailer'}->{'SUBJECT_APPEND'} ||= '';
'MAILER' => 'sendmail', $data->{'core.mailer'}->{'SUBJECT_PREPEND'} ||= '';
'instance_name' => 'mailer.phpmailer-lite', $data->{'core.mailer'}->{'UNIQUE_MAILER_INSTANCE'}->{'MAILER'} ||= 'sendmail';
'group_switch_value' => 'mailer.phpmailer-lite' $data->{'core.mailer'}->{'UNIQUE_MAILER_INSTANCE'}->{'instance_name'} = 'mailer.phpmailer-lite';
}, $data->{'core.mailer'}->{'UNIQUE_MAILER_INSTANCE'}->{'group_switch_value'} = 'mailer.phpmailer-lite';
'FROM_NAME' => 'Pydio',
'SUBJECT_APPEND' => '',
'SUBJECT_PREPEND' => ''
};
$data->{'action.powerfs'} = { $data->{'action.powerfs'}->{'AJXP_PLUGIN_ENABLED'} ||= '__true__';
'AJXP_PLUGIN_ENABLED' => '__true__'
};
$data->{'index.lucene'} = { $data->{'index.lucene'}->{'QUERY_ANALYSER'} ||= 'utf8num_insensitive';
'QUERY_ANALYSER' => 'utf8num_insensitive', $data->{'index.lucene'}->{'AJXP_PLUGIN_ENABLED'} ||= '__true__';
'AJXP_PLUGIN_ENABLED' => '__true__', $data->{'index.lucene'}->{'WILDCARD_LIMITATION'} ||= '0';
'WILDCARD_LIMITATION' => '0', $data->{'index.lucene'}->{'PDFTOTEXT'} ||= '/usr/bin/pydiopdftotext';
'PDFTOTEXT' => '/usr/bin/pydiopdftotext', $data->{'index.lucene'}->{'PARSE_CONTENT_HTML'} ||= 'html,htm';
'PARSE_CONTENT_HTML' => 'html,htm', $data->{'index.lucene'}->{'PARSE_CONTENT_MAX_SIZE'} ||= '20000000';
'PARSE_CONTENT_TXT' => 'txt', $data->{'index.lucene'}->{'UNOCONV'} ||= '/usr/bin/unoconv --server 127.0.0.1';
'PARSE_CONTENT_MAX_SIZE' => '20000000', $data->{'index.lucene'}->{'index_content'} ||= '__true__';
'UNOCONV' => '/usr/bin/unoconv --server 127.0.0.1',
'index_content' => '__true__'
};
$data->{'editor.imagick'} = { $data->{'editor.imagick'}->{'IM_VIEWER_QUALITY'} ||= '90';
'IM_VIEWER_QUALITY' => '90', $data->{'editor.imagick'}->{'AJXP_PLUGIN_ENABLED'} ||= '__true__';
'AJXP_PLUGIN_ENABLED' => '__true__', $data->{'editor.imagick'}->{'ONTHEFLY_THRESHOLD'} ||= '3';
'ONTHEFLY_THRESHOLD' => '3', $data->{'editor.imagick'}->{'ADDITIONAL_ENV_PATH'} ||= '';
'ADDITIONAL_ENV_PATH' => '', $data->{'editor.imagick'}->{'IM_THUMB_QUALITY'} ||= '65';
'IM_THUMB_QUALITY' => '65', $data->{'editor.imagick'}->{'IMAGE_MAGICK_CONVERT'} ||= '/usr/bin/convert';
'IMAGE_MAGICK_CONVERT' => '/usr/bin/convert', $data->{'editor.imagick'}->{'UNOCONV'} ||= 'HOME=/var/cache/ooo /usr/bin/unoconv --server 127.0.0.1';
'UNOCONV' => 'HOME=/var/cache/ooo /usr/bin/unoconv --server 127.0.0.1', $data->{'editor.imagick'}->{'IM_CUSTOM_OPTIONS'} ||= '-strip';
'IM_CUSTOM_OPTIONS' => '-strip'
};
$data->{'editor.ckeditor'} = { $data->{'editor.ckeditor'}->{'AJXP_PLUGIN_ENABLED'} ||= '__true__';
'AJXP_PLUGIN_ENABLED' => '__true__'
};
$data->{'action.quicksend'} = { $data->{'action.quicksend'}->{'AJXP_PLUGIN_ENABLED'} ||= '__true__';
'AJXP_PLUGIN_ENABLED' => '__true__'
};
$data = serialize($data); $data = serialize($data);
# PHP::Serialization has now way to # PHP::Serialization has now way to

Loading…
Cancel
Save