Looking at the serctl rm command the followin shell script is found:
rm) if [ $# -ne 2 ] ; then usage exit 1 fi shift prompt_pw
is_user $1 if [ $? -ne 0 ] ; then echo non-existent user exit 1 fi
QUERY="delete from $TABLE where $TABLE.$SUBSCRIBER_COLUMN='$1'" sql_query "$QUERY"
$0 acl revoke $1 > /dev/null 2>&1 $0 dul $1 > /dev/null 2>&1 ;;
What does $0 dul $1... do?
Anybody knows?
Alejandro
On Thursday 22 May 2003 21:47, Alejandro Olchik wrote:
Looking at the serctl rm command the followin shell script is found:
$0 acl revoke $1 > /dev/null 2>&1 $0 dul $1 > /dev/null 2>&1 ;;
What does $0 dul $1... do?
Anybody knows?
It calls the script itself again with "dul" as first parameter and the old first as second parameter. But i do not find any other reference for dul in the script. So its probably an old and now useless statement, but it should not harm any way :-)
Regards Nils Ohlmeier
OK. The problem is that it fails and the result code for serctl execution is an error code.
As I'm executing serctl through an external script I needed to change that.
Another point that I would like to contribute is that there is a hardcoded reference to the 'subscriber' table in the code and the $TABLE variable is being used both as a constant to point to the subscriber TABLE and also as a variable.
My suggestion is to change the constant name to $S_TABLE and correct that hardcoded table name to allow serctl to work properly when using serctl to provision multiple domains in the same SER server.
Best Regards, Alejandro
Nils Ohlmeier said:
On Thursday 22 May 2003 21:47, Alejandro Olchik wrote:
Looking at the serctl rm command the followin shell script is found:
$0 acl revoke $1 > /dev/null 2>&1 $0 dul $1 > /dev/null 2>&1 ;;
What does $0 dul $1... do?
Anybody knows?
It calls the script itself again with "dul" as first parameter and the old first as second parameter. But i do not find any other reference for dul in the script. So its probably an old and now useless statement, but it should not harm any way :-)
Regards Nils Ohlmeier