[pkg-tasktools] setup_server.bash --> problem with pki script directory

Gordon Ball gordon at chronitis.net
Sun Jul 17 18:00:02 UTC 2016


Hello

Thanks for reporting this.

On 16/07/16 09:09, Saša Janiška wrote:
> Hello,
> 
> I'm using taskd on my Debian (Sid) machine, but, so far, starting
> taskd manually and use $HOME/taskd as $TASKDDATA. However I'd like to
> migrate my 'local' setup to the system-wide one and the first thing I
> tried is with setup_server.bash whic yields an error:
> 
> $sudo sh setup_server.bash 
> [sudo] password for gour: 
> 
> This is an experimental script. Please report any problems.
> 
> Simple Taskserver configuration and setup.
> 
> This script will check your system, then setup and launch a Taskserver
> instance for you. You will be asked to confirm before anything is written.
> Please be careful with your answers and confirm that what the script
> collected is correct.
> 
> Location of this script                                      setup_server.bash
> Checking for pki script directory                            error
> [I] gour at atmarama:/usr/share/taskd$ 
> 
> due to wrong directory layout:

I think the issue here is that this setup script assumes that it is run
from the source directory (ie, what you'd get if you downloaded their
archive and unpacked it, then run setup_server from inside that source
tree).

It looks like we should either patch or not install setup_server.sh,
since it doesn't work as provided. I'm afraid I won't be able to work on
this for the next couple of weeks.

The instructions on
http://taskwarrior.org/docs/taskserver/configure.html should be valid,
and there are some debian-specific notes in
/usr/share/doc/taskd/README.Debian . You can make a copy of the
pki-generation scripts from /usr/share/taskd/pki . The default location
for the taskd data is /var/lib/taskd .

> 
> # Look for pki scripts, relative to $0, which assumes this script is in the
> # $REPO/scripts/ directory.
> log_line "Checking for pki script directory"
> if [ -d $DEFAULT_PKI ]; then
>   log_ok "Found $DEFAULT_PKI"
> else
>   log_error "error"
>   exit 1
> fi
> 
> 
> Not beain familiar how did you envision the layout on Debian, I'm just
> reporting it here...
> 
> 
> Sincerely,
> Gour

Gordon

> 
> 
> 
> _______________________________________________
> pkg-tasktools-discuss mailing list
> pkg-tasktools-discuss at lists.alioth.debian.org
> https://lists.alioth.debian.org/mailman/listinfo/pkg-tasktools-discuss
> 




More information about the pkg-tasktools-discuss mailing list