Dancer2-Plugin-WebService
view release on metacpan or search on metacpan
Check the installed plackup utility
plackup=$(/usr/bin/find /usr/bin -name plackup -type f)
[ -x "$plackup" ] && echo ok || echo Sorry, could not found the plackup
$plackup --version
Make executable any authentication script that needs root privileges, e.g the Linux_native_authentication.sh
/usr/bin/find $(/usr/bin/perl -M File::Basename -E 'use Dancer2::Plugin::WebService; print [ fileparse $INC{"Dancer2/Plugin/WebService.pm"} ]->[1]') -regex ".*\.\(sh\|pl|py\)\$"
/usr/bin/find $(/usr/bin/perl -M File::Basename -E 'use Dancer2::Plugin::WebService; print [ fileparse $INC{"Dancer2/Plugin/WebService.pm"} ]->[1]') -regex ".*\.\(sh\|pl|py\)\$" -type f -exec /usr/bin/chmod 755 {} \;
Give the authentication scripts sudo "no password prompt" e.g
vi /etc/sudoers.d/Dancer2-Plugin-WebService
dancer ALL=(ALL:ALL) NOPASSWD: /usr/share/perl5/site_perl/Dancer2/Plugin/AuthScripts/Linux_native_authentication.sh
To view the Dancer2::Plugin::WebService documentation using your web browser
[ -f /home/dancer/pod2htmd.tmp ] && unlink /home/dancer/pod2htmd.tmp
( run in 1.054 second using v1.01-cache-2.11-cpan-39bf76dae61 )