Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
alpine
alpine-conf
Commits
543dbda5
Commit
543dbda5
authored
Jan 21, 2008
by
Natanael Copa
Browse files
added setup-acf. version 1.3
parent
a5e55b7d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
543dbda5
V
=
1.
2
V
=
1.
3
P
=
alpine-conf
PV
=
$(P)
-
$(V)
APKF
=
$(PV)
.apk
...
...
@@ -9,6 +9,7 @@ TMP=$(PV)
LIB_FILES
=
libalpine.sh
SBIN_FILES
=
albootstrap
\
lbu
\
setup-acf
\
setup-ads
\
setup-alpine
\
setup-cryptswap
\
...
...
setup-acf
0 → 100644
View file @
543dbda5
#!/bin/sh
PROGRAM
=
setup-acf
VERSION
=
0.1
PREFIX
=
.
$PREFIX
/lib/libalpine.sh
usage
()
{
echo
"
$PROGRAM
[-adh] [PACKAGE...]"
exit
0
;
}
pkgs
=
"acf-core acf-alpine-baselayout"
while
getopts
"adh"
opt
;
do
case
$opt
in
a
)
pkgs
=
`
apk_fetch
-l
|
grep
^acf-
`
;;
d
)
pkgs
=
"
$pkgs
acf-devtools"
;;
h
)
usage
;;
*
)
usage
;;
esac
done
shift
`
expr
$OPTIND
- 1
`
while
[
$#
-gt
0
]
;
do
pkgs
=
"
$pkgs
acf-
$1
"
shift
done
# install packages
apk_add mini_httpd
$pkgs
||
exit
1
# setup mini_httpd and start it
mkdir
-p
/var/www/localhost/
ln
-s
/usr/share/acf/www/ /var/www/localhost/htdocs
cat
<<
EOF
>/etc/mini_httpd.conf
nochroot
dir=/var/www/localhost/htdocs
user=nobody
logfile=/var/log/mini_httpd.log
cgipat=cgi-bin**
port=80
EOF
cat
<<
EOF
>/etc/conf.d/mini_httpd
MINI_HTTPD_OPTS="-C /etc/mini_httpd.conf"
MINI_HTTPD_DOCROOT=/var/www/localhost/htdocs
EOF
pidof mini_httpd
>
/dev/null
&&
/etc/init.d/mini_httpd stop
rc_add
-k
mini_httpd
/etc/init.d/mini_httpd start
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment