Ignore:
Timestamp:
2012/12/17 01:27:59 (11 years ago)
Author:
kim
Message:

#1980 インストールシェルのpostgresをsu からsudo 実行に修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/eccube_install.sh

    r22133 r22143  
    109109    # PostgreSQL 
    110110    echo "dropdb..." 
    111     su ${PGUSER} -c "${DROPDB} ${DBNAME}" 
     111    sudo -u ${PGUSER} ${DROPDB} ${DBNAME} 
    112112    echo "createdb..." 
    113     su ${PGUSER} -c "${CREATEDB} -U ${DBUSER} ${DBNAME}" 
     113    sudo -u ${PGUSER} ${CREATEDB} -U ${DBUSER} ${DBNAME} 
    114114    echo "create table..." 
    115     su ${PGUSER} -c "${PSQL} -U ${DBUSER} -f ${SQL_DIR}/create_table_pgsql.sql ${DBNAME}" 
     115    sudo -u ${PGUSER} ${PSQL} -U ${DBUSER} -f ${SQL_DIR}/create_table_pgsql.sql ${DBNAME} 
    116116    echo "insert data..." 
    117     su ${PGUSER} -c "${PSQL} -U ${DBUSER} -f ${SQL_DIR}/insert_data.sql ${DBNAME}" 
     117    sudo -u ${PGUSER} ${PSQL} -U ${DBUSER} -f ${SQL_DIR}/insert_data.sql ${DBNAME} 
    118118    echo "execute optional SQL..." 
    119     su ${PGUSER} -c "${PSQL} -U ${DBUSER} -f ${OPTIONAL_SQL_FILE} ${DBNAME}" 
     119    sudo -u ${PGUSER} ${PSQL} -U ${DBUSER} -f ${OPTIONAL_SQL_FILE} ${DBNAME} 
    120120;; 
    121121"mysql" )  
Note: See TracChangeset for help on using the changeset viewer.