From fb78f7f8352165023a3f5351a77828e7b88698a5 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 29 Nov 2012 15:57:40 +0100 Subject: [PATCH] Enable publiclets on a default install --- .../e-smith/templates/etc/ajaxplorer/bootstrap_repositories.php/050repo | 2 +- root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer | 2 +- .../var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All | 2 +- .../var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_repositories.php/050repo b/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_repositories.php/050repo index efcc703..4fa4315 100644 --- a/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_repositories.php/050repo +++ b/root/etc/e-smith/templates/etc/ajaxplorer/bootstrap_repositories.php/050repo @@ -82,7 +82,7 @@ EOF } -if (($ajaxplorer{'PublicShares'} || 'disabled') eq 'enabled'){ +if (($ajaxplorer{'PublicShares'} || 'enabled') eq 'enabled'){ $OUT .=<<'EOF'; $REPOSITORIES["ajxp_shared"] = array( diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer index c6567c6..17df497 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/98Ajaxplorer @@ -15,7 +15,7 @@ if (($ajaxplorer{'status'} || 'disabled') eq 'enabled'){ my $shares = ''; - my $public = $ajaxplorer{'PublicShares'} || 'disabled'; + my $public = $ajaxplorer{'PublicShares'} || 'enabled'; $OUT .=<<"EOF" if ($public eq 'enabled'); Alias /ajxppub /var/lib/ajaxplorer/public diff --git a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All index 5d2843d..3dbed91 100644 --- a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All +++ b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/auth.serial/__user__/rights.ser/10All @@ -34,7 +34,7 @@ foreach my $share (@s){ } $data->{'ajxp_shared'} = 'rw' - if (($ajaxplorer{'PublicShares'} || 'disabled') eq 'enabled'); + if (($ajaxplorer{'PublicShares'} || 'enabled') eq 'enabled'); my $homedir = $ajaxplorer{'HomeDir'} || 'none'; diff --git a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All index ed9c094..f3f1bea 100644 --- a/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All +++ b/root/etc/e-smith/templates/var/lib/ajaxplorer/plugins/conf.serial/plugins_configs.ser/10All @@ -10,7 +10,7 @@ $data->{'core.ajaxplorer'}->{'AJXP_TMP_DIR'} = '/var/lib/ajaxplorer/tmp'; $data->{'core.ajaxplorer'}->{'DEFAULT_LANGUAGE'} = $ajaxplorer{'DefaultLanguage'} || 'en'; $data->{'core.ajaxplorer'}->{'APPLICATION_TITLE'} = $ajaxplorer{'Title'} || 'Ajaxplorer'; -if (($ajaxplorer{'PublicShares'} || 'disabled') eq 'enabled'){ +if (($ajaxplorer{'PublicShares'} || 'enabled') eq 'enabled'){ $data->{'core.ajaxplorer'}->{'PUBLIC_DOWNLOAD_FOLDER'} = '/var/lib/ajaxplorer/public'; $data->{'core.ajaxplorer'}->{'PUBLIC_DOWNLOAD_URL'} = $ajaxplorer{'PublicDownloadUrl'} || "http://$SystemName.$DomainName/ajxppub"; }