Fix in sed replacements
This commit is contained in:
parent
5a5063e4cb
commit
53f280096a
|
@ -458,11 +458,11 @@ EOT
|
||||||
|
|
||||||
if [ "$in_dbname" ]; then
|
if [ "$in_dbname" ]; then
|
||||||
cat $TPL_MAIL | \
|
cat $TPL_MAIL | \
|
||||||
sed -e "s/LOGIN/$in_login/g ; s/SERVERNAME/$in_wwwdomain/ ; s/PASSE1/$in_passwd/ ; s/PASSE2/$in_dbpasswd/ ; s/RANDOM/$random/ ; s/QUOTA/$quota/ ; s/RCPTTO/$in_mail/ ; s/DBNAME/$in_dbname/ ; s#HOME_DIR#$HOME_DIR#/"| \
|
sed -e "s/LOGIN/$in_login/g ; s/SERVERNAME/$in_wwwdomain/ ; s/PASSE1/$in_passwd/ ; s/PASSE2/$in_dbpasswd/ ; s/RANDOM/$random/ ; s/QUOTA/$quota/ ; s/RCPTTO/$in_mail/ ; s/DBNAME/$in_dbname/ ; s#HOME_DIR#$HOME_DIR#"| \
|
||||||
/usr/lib/sendmail -oi -t -f "$CONTACT_MAIL"
|
/usr/lib/sendmail -oi -t -f "$CONTACT_MAIL"
|
||||||
else
|
else
|
||||||
cat $TPL_MAIL | \
|
cat $TPL_MAIL | \
|
||||||
sed -e "s/LOGIN/$in_login/g ; s/SERVERNAME/$in_wwwdomain/ ; s/PASSE1/$in_passwd/ ; s/RANDOM/$random/ ; s/QUOTA/$quota/ ; s/RCPTTO/$in_mail/ ; s#HOME_DIR#$HOME_DIR#;; 39,58d"| \
|
sed -e "s/LOGIN/$in_login/g ; s/SERVERNAME/$in_wwwdomain/ ; s/PASSE1/$in_passwd/ ; s/RANDOM/$random/ ; s/QUOTA/$quota/ ; s/RCPTTO/$in_mail/ ; s#HOME_DIR#$HOME_DIR# ; 39,58d"| \
|
||||||
/usr/lib/sendmail -oi -t -f "$CONTACT_MAIL"
|
/usr/lib/sendmail -oi -t -f "$CONTACT_MAIL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue