Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
alpine-conf
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
19
Issues
19
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
alpine-conf
Commits
f4499c0b
Commit
f4499c0b
authored
May 15, 2009
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-webconf: fixed some issues with 1.9
parent
55dbfb5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
setup-webconf.in
setup-webconf.in
+6
-4
No files found.
setup-webconf.in
View file @
f4499c0b
...
...
@@ -7,16 +7,15 @@ PREFIX=
.
$PREFIX
/lib/libalpine.sh
usage
()
{
echo
"
$PROGRAM
[-a
d
h] [-l address] [PACKAGE...]"
echo
"
$PROGRAM
[-ah] [-l address] [PACKAGE...]"
exit
0
;
}
pkgs
=
"acf-core acf-alpine-baselayout acf-apk-tools"
while
getopts
"a
d
hl:"
opt
;
do
while
getopts
"ahl:"
opt
;
do
case
$opt
in
a
)
pkgs
=
`
apk_fetch
-l
|
grep
^acf-
`
;;
d
)
pkgs
=
"
$pkgs
acf-devtools"
;;
h
)
usage
;;
l
)
address
=
"
$OPTARG
"
;;
*
)
usage
;;
...
...
@@ -33,6 +32,9 @@ done
apk_add mini_httpd
$pkgs
||
exit
1
# setup mini_httpd and start it
if
[
-d
/var/www/localhost/htdocs
]
;
then
mv
/var/www/localhost/htdocs /var/www/localhost/htdocs.old
fi
mkdir
-p
/var/www/localhost/
ln
-s
/usr/share/acf/www/ /var/www/localhost/htdocs
lbu add /var/www/localhost/htdocs
...
...
@@ -93,6 +95,6 @@ MINI_HTTPD_DOCROOT=/var/www/localhost/htdocs
EOF
pidof mini_httpd
>
/dev/null
&&
/etc/init.d/mini_httpd stop
rc
_add
-k
mini_httpd
rc
-update add mini_httpd default
/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