webfs: renamed startscript, run as user www
This commit is contained in:
parent
13de90f790
commit
e81170a370
@ -1,6 +1,6 @@
|
||||
drwxr-xr-x root/root etc/
|
||||
drwxr-xr-x root/root etc/rc.d/
|
||||
-rwxr-xr-x root/root etc/rc.d/httpd
|
||||
-rwxr-xr-x root/root etc/rc.d/webfsd
|
||||
drwxr-xr-x root/root usr/
|
||||
drwxr-xr-x root/root usr/bin/
|
||||
-rwxr-xr-x root/root usr/bin/webfsd
|
||||
|
@ -1,2 +1,2 @@
|
||||
30cbf8683e3a11aea7a3c5343106fdce httpd
|
||||
6dc125fe160479404147e7bbfc781dbc webfs-1.21.tar.gz
|
||||
9b05d0083cfa72ef48661de0a064c061 webfsd
|
||||
|
@ -5,12 +5,12 @@
|
||||
|
||||
name=webfs
|
||||
version=1.21
|
||||
release=2
|
||||
release=3
|
||||
source=(http://dl.bytesex.org/releases/webfs/webfs-$version.tar.gz \
|
||||
httpd)
|
||||
webfsd)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
make prefix=$PKG/usr mandir=$PKG/usr/man install
|
||||
install -D -m 0755 ../httpd $PKG/etc/rc.d/httpd
|
||||
install -D -m 0755 $SRC/webfsd $PKG/etc/rc.d/webfsd
|
||||
}
|
||||
|
@ -1,11 +1,11 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# /etc/rc.d/httpd: start/stop http daemon
|
||||
# /etc/rc.d/httpd: start/stop webfs http daemon
|
||||
#
|
||||
|
||||
case $1 in
|
||||
start)
|
||||
/usr/bin/webfsd -u nobody -g nobody -r /var/www -p 80 -f index.html
|
||||
/usr/bin/webfsd -u www -g www -r /var/www -p 80 -f index.html
|
||||
;;
|
||||
stop)
|
||||
killall -q /usr/bin/webfsd
|
Loading…
Reference in New Issue
Block a user