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
18
Issues
18
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
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
76aa606b
Commit
76aa606b
authored
Apr 23, 2014
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-timezone: code cleanup. rename zonepath to timezone
parent
6a77f1b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
setup-timezone.in
setup-timezone.in
+13
-13
No files found.
setup-timezone.in
View file @
76aa606b
...
...
@@ -79,10 +79,10 @@ fi
apk add
--quiet
$pkg
if
[
-L
"
${
ROOT
}
"
etc/zoneinfo/localtime
]
;
then
zonepath
=
$(
readlink
"
${
ROOT
}
"
etc/zoneinfo/localtime
)
zonepath
=
${
zonepath
#*/zoneinfo/
}
timezone
=
$(
readlink
"
${
ROOT
}
"
etc/zoneinfo/localtime
)
timezone
=
${
timezone
#*/zoneinfo/
}
else
zonepath
=
UTC
timezone
=
UTC
fi
...
...
@@ -92,28 +92,28 @@ while true; do
break
fi
echo
-n
"Which timezone are you in? ('?' for list) [
$
zonepath
] "
default_read
zonepath
"
$zonepath
"
case
"
$
zonepath
"
in
echo
-n
"Which timezone are you in? ('?' for list) [
$
timezone
] "
default_read
timezone
"
$timezone
"
case
"
$
timezone
"
in
""
)
continue
;;
"?"
)
show_tz_list
;
continue
;;
esac
while
[
-d
"
$zroot
/
$
zonepath
"
]
;
do
while
[
-d
"
$zroot
/
$
timezone
"
]
;
do
zone
=
echo
-n
"What sub-timezone of '
$
zonepath
' are you in? ('?' for list) "
echo
-n
"What sub-timezone of '
$
timezone
' are you in? ('?' for list) "
default_read zone
case
"
$zone
"
in
"?"
)
show_tz_list
"
$
zonepath
"
;
continue
;;
"?"
)
show_tz_list
"
$
timezone
"
;
continue
;;
esac
zonepath
=
"
$zonepath
/
$zone
"
timezone
=
"
$timezone
/
$zone
"
done
if
[
-f
"
$zroot
/
$
zonepath
"
]
;
then
setup_tz
"
$zroot
/
$
zonepath
"
if
[
-f
"
$zroot
/
$
timezone
"
]
;
then
setup_tz
"
$zroot
/
$
timezone
"
break
fi
echo
"'
$
zonepath
' is not a valid timezone on this system"
echo
"'
$
timezone
' is not a valid timezone on this system"
done
if
[
-n
"
$apkdel
"
]
;
then
...
...
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