1. Zhang Huangbin
  2. iredmail

Commits

Zhang Huangbin  committed 4d3ef55

Escape '@' in Perl command line.

  • Participants
  • Parent commits f7e434b
  • Branches default

Comments (0)

Files changed (1)

File iRedMail/functions/iredadmin.sh

View file
  • Ignore whitespace
     # Modify iRedAdmin settings.
     # [general] section.
     ECHO_DEBUG "Configure general settings."
-    perl -pi -e 's#^(webmaster =).*#${1} $ENV{FIRST_USER}@$ENV{FIRST_DOMAIN}#' settings.ini
+    perl -pi -e 's#^(webmaster =).*#${1} $ENV{FIRST_USER}\@$ENV{FIRST_DOMAIN}#' settings.ini
     perl -pi -e 's#^(storage_base_directory =).*#${1} $ENV{STORAGE_MAILBOX_DIR}#' settings.ini
 
     # [iredadmin] section.