Ignore:
Timestamp:
Jan 19, 2017, 1:45:17 PM (3 years ago)
Author:
mabarracus
Message:

fix write config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lliurex-analytics-server/trunk/fuentes/debian/postinst

    r3369 r3370  
    119119            echo "grant all privileges on analytics.* to '$user'@'%';" | $mysqlroot
    120120            echo "flush privileges;" | $mysqlroot
    121             echo "user=$user" >> /etc/lliurex-analytics-server/config_db
     121            echo "user=$user" > /etc/lliurex-analytics-server/config_db
    122122            echo "pass=$pass" >> /etc/lliurex-analytics-server/config_db
    123123            chmod 750 /etc/lliurex-analytics-server/config_db
     
    130130            do_dialog 'Analytics configuration' 'Password del usuario con permiso en bd analytics?'
    131131            pass=$input
    132             echo "user=$user" >> /etc/lliurex-analytics-server/config_db
     132            echo "user=$user" > /etc/lliurex-analytics-server/config_db
    133133            echo "pass=$pass" >> /etc/lliurex-analytics-server/config_db
    134134            chmod 640 /etc/lliurex-analytics-server/config_db
Note: See TracChangeset for help on using the changeset viewer.