- Timestamp:
- 03/26/12 16:01:38 (12 years ago)
- Location:
- trunk/INSTALL
- Files:
-
- 1 deleted
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/INSTALL/arquivos/scripts/bd.sh
r5797 r5818 4 4 # Comum a todas as distros 5 5 6 # Parametro 1: Destino (completo) de onde estao os arquivos de configuracao do Postgres6 # Parametro 1: Destino (completo) de onde ficarao os dados do Postges (data) 7 7 # Parametro 2: Nome do arquivo modelo de configuração do Postgres (postgres.conf) 8 8 # Parametro 3: Nome do arquivo modelo de configuracao de acessos do Postgres (pg_hba.conf) 9 # Parametro 4: Destino (completo) de onde ficarao os arquivos de configuracao do Postgres 9 10 # Exemplo: bd /var/lib/pgsql/data 10 11 bd () { … … 12 13 PG_CONF=$2 13 14 PG_HBA=$3 15 DIR_CONF=$4 14 16 get_org 15 17 get_pass 16 18 19 rm -rf $DIR_PG* 17 20 su - postgres -c "export LANG=pt_BR.ISO-8859-1; initdb -E latin1 -D $DIR_PG" 18 21 #su - postgres -c 'env LANG=LATIN1 /usr/bin/initdb --locale=pt_BR.iso88591 --encoding=LATIN1 -D /var/lib/pgsql/data/' 19 22 sed -e "s/LDAP_DN/$LDAP_DN/g" -e "s/LDAP_PWD/$LDAP_PWD/g" -e "s/ORG/$ORG/g" -e "s/DOMAIN/$DOMAIN/g" $ARQS/expresso.dump > /tmp/expresso.dump 23 20 24 21 cp -f $PG_CONF $DIR_PG/ 22 cp -f $PG_HBA $DIR_PG/ 25 26 cp -f $PG_CONF $DIR_CONF/ 27 cp -f $PG_HBA $DIR_CONF/ 28 23 29 } 24 30 25 # Cria a base de dados e importa os SQLs pad ores31 # Cria a base de dados e importa os SQLs padroes 26 32 create_db () 27 33 { … … 37 43 PG_CONF="$2" 38 44 PG_HBA="$3" 45 DIR_CONF="$4" 39 46 # Instala os pacotes do servico 40 47 apt-get install -y postgresql postgresql-common postgresql-client postgresql-client-common … … 49 56 chmod -R 770 $DIR_PG 50 57 51 bd $DIR_PG/main $PG_CONF $PG_HBA 52 58 bd $DIR_PG $PG_CONF $PG_HBA $DIR_CONF 59 rm -f $DIR_PG/postgresql.conf 60 rm -f $DIR_PG/pg_hba.conf 53 61 54 62 /etc/init.d/postgresql start … … 60 68 bd_debian-squeeze () 61 69 { 62 DIR_PG="/var/lib/postgresql/8.4" 63 SQUEEZE=debian/squeeze/var/lib/postgresql/8.4/main 64 bd_debian $DIR_PG $SQUEEZE/postgresql.conf $SQUEEZE/pg_hba.conf 70 DIR_PG="/var/lib/postgresql/8.4/main" 71 DIR_CONF="/etc/postgresql/8.4/main" 72 SQUEEZE=debian/squeeze/$DIR_CONF 73 bd_debian $DIR_PG $SQUEEZE/postgresql.conf $SQUEEZE/pg_hba.conf $DIR_CONF 65 74 } 66 75 … … 71 80 PG_CONF="$2" 72 81 PG_HBA="$3" 82 DIR_CONF="$4" 73 83 # Instala os pacotes do servico 74 84 yum -y install postgresql postgresql-server … … 79 89 chown -R postgres:postgres $DIR_PG 80 90 81 bd $DIR_PG/data $PG_CONF $PG_HBA 91 bd $DIR_PG/data $PG_CONF $PG_HBA $DIR_CONF 82 92 83 93 chown -R postgres:postgres $DIR_PG … … 94 104 { 95 105 DIR_PG="/var/lib/pgsql" 106 DIR_CONF="$DIR_PG/data" 96 107 RHEL6=rhel/6/var/lib/pgsql/data 97 bd_rhel $DIR_PG $RHEL6/postgresql.conf $RHEL6/pg_hba.conf 108 bd_rhel $DIR_PG $RHEL6/postgresql.conf $RHEL6/pg_hba.conf $DIR_CONF 98 109 } 99 110 -
trunk/INSTALL/arquivos/scripts/http.sh
r5802 r5818 18 18 HEADER_PWD=`php $ARQS/scripts/pass.php $LDAP_PWD` 19 19 sed -e "s/HEADER_PWD/$HEADER_PWD/g" -e "s|EXPRESSO_DIR|$DIR_EXPRESSO|g" $ARQS/header.inc.php > $DIR_EXPRESSO/header.inc.php 20 20 chmod 640 $DIR_EXPRESSO/header.inc.php 21 22 /etc/init.d/apache2 restart 21 23 # Requisita o domino para corrigir o hosts do servidor, utilizado pelo apache 22 24 get_org -
trunk/INSTALL/debian/squeeze/etc/default/saslauthd
r5797 r5818 1 # This needs to be uncommented before saslauthd will be run automatically 1 # 2 # Settings for saslauthd daemon 3 # Please read /usr/share/doc/sasl2-bin/README.Debian for details. 4 # 5 6 # Should saslauthd run automatically on startup? (default: no) 2 7 START=yes 3 8 4 # You must specify the authentication mechanisms you wish to use. 5 # This defaults to "pam" for PAM support, but may also include 6 # "shadow" or "sasldb", like this: 7 # MECHANISMS="pam shadow" 9 # Description of this saslauthd instance. Recommended. 10 # (suggestion: SASL Authentication Daemon) 11 DESC="SASL Authentication Daemon" 8 12 13 # Short name of this saslauthd instance. Strongly recommended. 14 # (suggestion: saslauthd) 15 NAME="saslauthd" 16 17 # Which authentication mechanisms should saslauthd use? (default: pam) 18 # 19 # Available options in this Debian package: 20 # getpwent -- use the getpwent() library function 21 # kerberos5 -- use Kerberos 5 22 # pam -- use PAM 23 # rimap -- use a remote IMAP server 24 # shadow -- use the local shadow password file 25 # sasldb -- use the local sasldb database file 26 # ldap -- use LDAP (configuration is in /etc/saslauthd.conf) 27 # 28 # Only one option may be used at a time. See the saslauthd man page 29 # for more information. 30 # 31 # Example: MECHANISMS="pam" 9 32 MECHANISMS="ldap" 33 34 # Additional options for this mechanism. (default: none) 35 # See the saslauthd man page for information about mech-specific options. 36 MECH_OPTIONS="" 37 38 # How many saslauthd processes should we run? (default: 5) 39 # A value of 0 will fork a new process for each connection. 40 THREADS=5 41 42 # Other options (default: -c -m /var/run/saslauthd) 43 # Note: You MUST specify the -m option or saslauthd won't run! 44 # 45 # WARNING: DO NOT SPECIFY THE -d OPTION. 46 # The -d option will cause saslauthd to run in the foreground instead of as 47 # a daemon. This will PREVENT YOUR SYSTEM FROM BOOTING PROPERLY. If you wish 48 # to run saslauthd in debug mode, please run it by hand to be safe. 49 # 50 # See /usr/share/doc/sasl2-bin/README.Debian for Debian-specific information. 51 # See the saslauthd man page and the output of 'saslauthd -h' for general 52 # information about these options. 53 # 54 # Example for postfix users: "-c -m /var/spool/postfix/var/run/saslauthd" 55 OPTIONS="-c -m /var/run/saslauthd" -
trunk/INSTALL/debian/squeeze/etc/ldap/slapd.conf
r5797 r5818 1 # Allow LDAPv2 binds2 allow bind_v23 4 1 # This is the main slapd configuration file. See slapd.conf(5) for more 5 2 # info on the configuration options. … … 16 13 include /etc/ldap/schema/nis.schema 17 14 include /etc/ldap/schema/inetorgperson.schema 18 15 # Necessario para o Expresso Livre 19 16 include /etc/ldap/schema/qmailuser.schema 20 17 include /etc/ldap/schema/phpgwaccount.schema … … 22 19 include /etc/ldap/schema/phpgwcontact.schema 23 20 24 # Schema check allows for forcing entries to25 # match schemas for their objectClasses's26 27 28 21 # Where the pid file is put. The init.d script 29 22 # will not stop the server if you change this. 30 23 pidfile /var/run/slapd/slapd.pid 31 32 # List of arguments that were passed to the server 33 argsfile /var/run/slapd.args 24 argsfile /var/run/slapd/slapd.args 34 25 35 26 # Read slapd.conf(5) for possible values 36 loglevel 027 loglevel 256 37 28 29 # Allow LDAPv2 client connections. This is NOT the default. 30 # Necessario para o Expresso 31 allow bind_v2 32 33 # Do not enable referrals until AFTER you have a working directory 34 # service AND an understanding of referrals. 35 #referral ldap://root.openldap.org 36 37 ####################################################################### 38 38 # Where the dynamically loaded modules are stored 39 39 modulepath /usr/lib/ldap 40 40 moduleload back_hdb 41 41 42 #######################################################################43 42 # Specific Backend Directives for bdb: 44 43 # Backend specific directives apply to this backend until another 45 44 # 'backend' directive occurs 46 45 backend hdb 47 #checkpoint 512 3048 49 #######################################################################50 # Specific Backend Directives for 'other':51 # Backend specific directives apply to this backend until another52 # 'backend' directive occurs53 #backend <other>54 55 46 ####################################################################### 56 47 # Specific Directives for database #1, of type bdb: … … 64 55 rootpw LDAP_PWD_MD5 65 56 57 checkpoint 1024 10 58 # Save the time that the entry gets modified, for database #1 59 lastmod on 60 66 61 # Where the database file are physically stored for database #1 67 62 directory "/var/lib/ldap" 68 63 69 64 # Indexing options for database #1 70 index mail,mailAlternateAddress,objectClass,memberUid,uidNumber,deliveryMode,accountStatus,phpgwAccountType,gidNumber,phpgwAccountStatus,ou pres,eq 71 index uid,cn,sn,givenName pres,eq,sub 65 index default sub 66 index entryCSN,accountStatus eq 67 index objectClass,uidNumber,gidNumber,entryUUID eq,pres 68 index sambaSID,sambaPrimaryGroupSID,sambaAcctFlags eq,pres 69 index sambaDomainName,sambaSIDList,sambaGroupType eq,pres 70 index cn,displayName eq,pres,subany,approx 71 index sn,ou,givenName,uid,employeeNumber eq,pres,subany 72 index memberUid,mail,mailAlternateAddress,mailForwardingAddress eq,pres,subany 73 index phpgwContactOwner,phpgwAccountType,phpgwAccountStatus eq,pres 74 index uniqueMember pres 72 75 73 # Save the time that the entry gets modified, for database #174 lastmod on75 76 76 77 # Where to store the replica logs for database #1 -
trunk/INSTALL/debian/squeeze/etc/postgresql/8.4/main/postgresql.conf
r5797 r5818 39 39 # option or PGDATA environment variable, represented here as ConfigDir. 40 40 41 #data_directory = 'ConfigDir' # use data in another directory42 # (change requires restart) 43 #hba_file = 'ConfigDir/pg_hba.conf' # host-based authentication file44 # (change requires restart) 45 #ident_file = 'ConfigDir/pg_ident.conf' # ident configuration file41 data_directory = '/var/lib/postgresql/8.4/main' # use data in another directory 42 # (change requires restart) 43 hba_file = '/etc/postgresql/8.4/main/pg_hba.conf' # host-based authentication file 44 # (change requires restart) 45 ident_file = '/etc/postgresql/8.4/main/pg_ident.conf' # ident configuration file 46 46 # (change requires restart) 47 47 48 48 # If external_pid_file is not explicitly set, no extra PID file is written. 49 #external_pid_file = '(none)' # write an extra PID file49 external_pid_file = '/var/run/postgresql/8.4-main.pid' # write an extra PID file 50 50 # (change requires restart) 51 51 … … 76 76 77 77 #authentication_timeout = 1min # 1s-600s 78 #ssl = off# (change requires restart)78 #ssl = true # (change requires restart) 79 79 #ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers 80 80 # (change requires restart) … … 105 105 # - Memory - 106 106 107 shared_buffers = 32MB # min 128kB107 shared_buffers = 24MB # min 128kB 108 108 # (change requires restart) 109 109 #temp_buffers = 8MB # min 800kB … … 238 238 239 239 # This is used when logging to stderr: 240 logging_collector = on 240 logging_collector = on # Enable capturing of stderr and csvlog 241 241 # into log files. Required to be on for 242 242 # csvlogs. … … 246 246 log_directory = 'pg_log' # directory where log files are written, 247 247 # can be absolute or relative to PGDATA 248 log_filename = 'postgresql-% a.log' # log file name pattern,248 log_filename = 'postgresql-%Y-%m-%d_%H%M%S.log' # log file name pattern, 249 249 # can include strftime() escapes 250 250 log_truncate_on_rotation = on # If on, an existing log file of the … … 258 258 log_rotation_age = 1d # Automatic rotation of logfiles will 259 259 # happen after that time. 0 disables. 260 log_rotation_size = 0# Automatic rotation of logfiles will260 log_rotation_size = 10MB # Automatic rotation of logfiles will 261 261 # happen after that much log output. 262 262 # 0 disables. … … 332 332 #log_duration = off 333 333 #log_hostname = off 334 #log_line_prefix = '' # special values:334 log_line_prefix = '%t ' # special values: 335 335 # %u = user name 336 336 # %d = database name … … 484 484 #backslash_quote = safe_encoding # on, off, or safe_encoding 485 485 #default_with_oids = off 486 # Necessario para o Expresso487 standard_conforming_strings = off488 bytea_output = 'escape'489 # Necessario para o Expresso490 486 #escape_string_warning = on 491 487 #regex_flavor = advanced # advanced, extended, or basic -
trunk/INSTALL/rhel/6/etc/openldap/slapd.conf
r5797 r5818 89 89 rootpw LDAP_PWD_MD5 90 90 91 checkpoint 91 checkpoint 1024 10 92 92 # Save the time that the entry gets modified, for database #1 93 93 lastmod on
Note: See TracChangeset
for help on using the changeset viewer.