Off-Topic > Off-Topic - Tiny Core Lounge
Anyone interested in testing an aria2 webUI?
AbNoRMiS:
--- Quote from: AbNoRMiS on August 11, 2012, 08:56:11 PM ---i also thought how would better
automatically define prefix variable
rather than set it tough...
--- End quote ---
prefix solved simply
--- Code: ---A2WEB=`find /usr -name a2web.cgi`
PREFIX=${A2WEB%%/share*}
--- End code ---
AbNoRMiS:
--- Quote from: AbNoRMiS on August 11, 2012, 08:56:11 PM ---and when i rode to home then i thought
that not very well written search for path to busybox httpd
if this will applied for different linux distributions
--- End quote ---
i think that this will be better
--- Code: ---# find busybox httpd if running a2web.cgi not found
for item in `find ${PATH//:/ } /usr -name httpd -type l`; do
[ -x $item ] && readlink $item | grep -q busybox && HTBIN=$item && break
done
--- End code ---
curaga:
Please upload the complete script instead of snippets ;)
AbNoRMiS:
sorry for delay
this took two nights instead one as i imagined
changes:
- removed dir option checking and passing it to aria2 command line
- modified hard assignment of prefix to determination by search
- corrected search for determine path to busybox httpd
- changed user/group for busybox httpd to nobody/nogroup
- added simple option validation for configuration file a2web.conf
- added function for determine user instead of hard assignment
- appointed current a2webd version number to 0.2
curaga:
Added it to the a2web repo. The extension update will have to wait a bit (ibiblio low on space again).
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version