Ticket #12780: mythweb.postinst.patch
File mythweb.postinst.patch, 839 bytes (added by , 8 years ago) |
---|
-
mythweb.postinst
old new 64 64 mythtv_username="$RET" 65 65 db_get mythtv/mysql_mythtv_password 66 66 mythtv_password="$RET" 67 mythtv_password_escaped=$(printf "%s" "$mythtv_password" | sed 's/[&/\]/\\&/g')68 67 69 68 db_get mythweb/enable || true 70 69 AUTH_ENABLE="$RET" … … 120 119 s/^.*\(setenv\sdb_server\s\+\"\).*\"/\t\1$hostname\"/g; 121 120 s/^.*\(setenv\sdb_name\s\+\"\).*\"/\t\1$database\"/g; 122 121 s/^.*\(setenv\sdb_login\s\+\"\).*\"/\t\1$mythtv_username\"/g; 123 s/^.*\(setenv\sdb_password\s\+\"\).*\"/\t\1$mythtv_password _escaped\"/g;122 s/^.*\(setenv\sdb_password\s\+\"\).*\"/\t\1$mythtv_password\"/g; 124 123 " > $NEW 125 124 if [ "$INPUT" != "$MYTHWEBCONF" ]; then 126 125 sed "s,/var/www/html,$SYMLINK,;" -i $NEW