Skip to content

Commit

Permalink
escape a few $
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Dec 6, 2024
1 parent a94bab7 commit 3898f39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions provision/dovecot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -571,10 +571,10 @@ configure_dovecot_lastauth()
set -e
user=$(echo $USER | cut -f1 -d@)
domain=$(echo $USER | cut -f2 -d@)
domain=$(echo \$USER | cut -f2 -d@)
user=$(echo \$USER | cut -f1 -d@)
echo "UPDATE lastauth SET timestamp=UNIX_TIMESTAMP(now()), remote_ip='$IP' WHERE user='$user' AND domain='$domain';" | \
echo "UPDATE lastauth SET timestamp=UNIX_TIMESTAMP(now()), remote_ip='\$IP' WHERE user='\$user' AND domain='\$domain';" | \
mysql --defaults-extra-file=/data/etc/.my.cnf
exec "$@"
Expand Down

0 comments on commit 3898f39

Please sign in to comment.