HOW TO use hook? (Re: New mirror scripts for Debian mirrors)
>>>>> In <87zlkai7gc.fsf@vorlon.ganneff.de>
>>>>> Joerg Jaspert <joerg@ganneff.de> wrote:
>> Hi
>>
>> Recently, we rewrote the Debian archive mirror script formerly known as
>> anonftpsync. The new scriptset has many more features, and is the new
>> de-facto standard for Debian mirrors.
>>
>> Please switch to it as soon as possible.
>>
>> The scriptset is available in two forms:
>> - as a tarball from http://ftp-master.debian.org/ftpsync.tar.gz
>> - as a git repository:
>> git clone https://ftp-master.debian.org/git/archvsync.git
Humm....I'm testing new ftpsync script (from git). But I can not
setup to use HOOKs. How to use them? Isn't it possible to use
scripts with some args for hook?
I hope to run a command with 2 args on HOOK1 (for example) as bellow:
/home/ftpadm/bin/irc_notify.sh ${NAME} '1st stage start...'
(${NAME} is defined in ftpsync script)
So, I set HOOK1 variable as bellow:
HOOK1="/home/ftpadm/bin/irc_notify.sh ${NAME} '1st stage start...'"
It will cause error with bellow (${NAME} = ftp-sync-debian-jp):
/home/ftpadm/etc/common: line 137: local: `ftpsync-debian-jp': not a valid identifier
/home/ftpadm/etc/common: line 137: local: `'1st': not a valid identifier
/home/ftpadm/etc/common: line 137: local: `start...'': not a valid identifier
--
ISHIKAWA Mutsumi
<ishikawa@debian.org>, <ishikawa@hanzubon.jp>, <ishikawa@osdn.jp>
Reply to: