if "local" has been chosen in debconf, then add a line in the config file 
idicating that we want to store the file in /var/log/ocsinventory-agent

this should quickly solve the issue but it raises new problems :

- rotate the files ?
- let the user choose which location should be used ?
- document the location of the file in the README ?


-- 
Fabrice Flore-Thébault
43a44
>       LOCAL="/var/log/ocsinventory-agent"
47a49,53
>       elif [ "$RET" = "local" ]; then
>         LOCAL="/var/log/ocsinventory-agent"
> 	# we should create a new method to let user decide where to put the file
> 	#db_get ocsinventory-agent/local || true
> 	#LOCAL="$RET"
56a63,66
>       if [ -n "$LOCAL" ]; then
>         echo "local=$LOCAL" >> $TMPFILE
>         mkdir -p "$LOCAL"
>       fi

Reply via email to