Changeset 629


Ignore:
Timestamp:
02/22/06 01:26:26 (7 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2005-04-29 04:20:46 by anarcat]
après une repo-copie de install/scripts/etc/phpmyadmin/config.inc.php
vers install/etc/alternc/phpmyadmin.inc.php, retirer le config.inc.php
du joug de alternc.install, et *ajouter* la configuration d'alternc à
la configuration phpMyAdmin déjà existante on fait ceci en installant
un fichier de config de phpmyadmin dans /etc/alternc, assez similaire
à l'original, mais qui est inclus à la fin de config.inc.php, ce qui
permet de conserver des configurations locales qui survivent aux
upgrades alternc

Original author: anarcat
Date: 2005-04-29 04:20:46

Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • debian/postinst

    r601 r629  
    119119    /usr/share/alternc/install/upgrade_check.sh $2 
    120120 
    121     echo "running alternc.install" 
    122121    # important: postinst gele sans ca 
    123122    db_stop 
     123 
     124    echo "config phpmyadmin" 
     125    include_str='include_once("/etc/alternc/phpmyadmin.inc.php")' 
     126    pma_config=/etc/phpmyadmin/config.inc.php 
     127    if ! grep -e "$include_str" $pma_config > /dev/null 2>&1; then 
     128        echo "<?php $include_str ?>" >> $pma_config 
     129    fi 
     130    echo "running alternc.install" 
    124131    alternc.install 
    125132 
  • debian/rules

    r628 r629  
    5353        install -o root -g www-data -m0750 -d debian/alternc/etc/alternc 
    5454        sed -e "s/@@VERSION@@/$(VERSION)/g" >debian/alternc/etc/alternc/alternc.conf < install/etc/alternc/alternc.conf  
     55        install -o root -g root -m644 install/etc/alternc/phpmyadmin.inc.php debian/alternc/etc/alternc 
    5556        chown www-data debian/alternc/etc/alternc/alternc.conf 
    5657        chmod 750 debian/alternc/etc/alternc/alternc.conf 
  • install/etc/alternc/phpmyadmin.inc.php

    r627 r629  
    11<?php 
     2 
    23/** 
    3  * Debian local configuration file 
     4 * Special phpmyadmin configuration for AlternC 
    45 * 
    5  * This file overrides global configuration file 
     6 * We setup two new servers: 
     7 * 
     8 * i: a server with a hardcoded username/password corresponding to the 
     9 * one setup in the AlternC panels 
     10 * 
     11 * i+1: a regular server with a cookie-based auth 
     12 * 
     13 * the content of this file will be included in the 
     14 * /etc/phpmyadmin/config.inc.php 
    615 */ 
    716 
    8  
    9 /** 
    10  * Server(s) configuration 
    11  */ 
    12 $i = 0; 
    13 // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0]. 
    14 // You can disable a server config entry by setting host to ''. 
    1517$i++; 
    1618 
    17 // Uncomment to override the default configuration 
    1819$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address 
    1920$cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port 
     
    3435$cfg['Servers'][$i]['password']      = $_COOKIE["REMOTE_PASSWORD"]; ;          // MySQL password (only needed 
    3536//                                                    // with 'config' auth_type) 
    36 $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only 
    37 //                                                    // this db is displayed in left frame 
    38 //                                                    // It may also be an array of db-names, where sorting order is relevant. 
    39 $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname 
    40 // 
    41 //$cfg['Servers'][$i]['pmadb']         = 'phpmyadmin';// Database used for Relation, Bookmark and PDF Features 
    42 //                                                    // (see scripts/create_tables.sql) 
    43 //                                                    //   - leave blank for no support 
    44 //                                                    //     DEFAULT: 'phpmyadmin' 
    45 //$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';// Bookmark table 
    46 //                                                    //   - leave blank for no bookmark support 
    47 //                                                    //     DEFAULT: 'pma_bookmark' 
    48 //$cfg['Servers'][$i]['relation']      = 'pma_relation';// table to describe the relation between links (see doc) 
    49 //                                                    //   - leave blank for no relation-links support 
    50 //                                                    //     DEFAULT: 'pma_relation' 
    51 //$cfg['Servers'][$i]['table_info']    = 'pma_table_info';// table to describe the display fields 
    52 //                                                    //   - leave blank for no display fields support 
    53 //                                                    //     DEFAULT: 'pma_table_info' 
    54 //$cfg['Servers'][$i]['table_coords']  = 'pma_table_coords';// table to describe the tables position for the PDF schema 
    55 //                                                    //   - leave blank for no PDF schema support 
    56 //                                                    //     DEFAULT: 'pma_table_coords' 
    57 //$cfg['Servers'][$i]['pdf_pages']     = 'pma_pdf_pages';// table to describe pages of relationpdf 
    58 //                                                    //   - leave blank if you don't want to use this 
    59 //                                                    //     DEFAULT: 'pma_pdf_pages' 
    60 //$cfg['Servers'][$i]['column_info']   = 'pma_column_info';// table to store column information 
    61 //                                                    //   - leave blank for no column comments/mime types 
    62 //                                                    //     DEFAULT: 'pma_column_info' 
    63 //$cfg['Servers'][$i]['history']       = 'pma_history';// table to store SQL history 
    64 //                                                    //   - leave blank for no SQL query history 
    65 //                                                    //     DEFAULT: 'pma_history' 
    66 //$cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables 
    67 //                                                    // are up to date. This prevents compatibility 
    68 //                                                    // checks and thereby increases performance. 
    69 //$cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login 
    70 //$cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use 
    71 //                                     = ''; 
    72 //$cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults 
    73 //                                     = array(); 
    74  
    7537 
    7638$i++; 
     
    9456$cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed 
    9557//                                                    // with 'config' auth_type) 
    96 $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only 
    97 //                                                    // this db is displayed in left frame 
    98 //                                                    // It may also be an array of db-names, where sorting order is relevant. 
    99 $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname 
    100  
    101  
    102  
    10358 
    10459?> 
  • install/scripts/alternc.install

    r602 r629  
    148148%conf_vars = ( 
    149149 
    150          # PHPMYAdmin, Config file, 
    151          "etc/phpmyadmin/config.inc.php" => "[PHPMyAdmin] Config File", 
    152  
    153150         # Scripts-Shells generaux : 
    154151         "local.php" => "[General] Fichier de configuration general du Bureau virtuel", 
Note: See TracChangeset for help on using the changeset viewer.