6 lines
185 B
Bash
Executable file
6 lines
185 B
Bash
Executable file
#!/bin/bash
|
|
pass=$3
|
|
pass=$((pass))
|
|
num=$2
|
|
num=$((num))
|
|
psql -h pgsql.adm.crans.org -U crans django -c "UPDATE voip_profile SET voicemail_password='$pass' WHERE num='$num'" >> /tmp/pin
|