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
21a2a17a
Commit
21a2a17a
authored
Aug 10, 2015
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-timezone: fix use of -z option
ref #4518
parent
848a2ab2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
setup-timezone.in
setup-timezone.in
+5
-5
No files found.
setup-timezone.in
View file @
21a2a17a
...
...
@@ -8,7 +8,7 @@ zroot=/usr/share/zoneinfo
usage
()
{
cat
<<
__EOF__
usage: setup-timezone [-h] [-k|-i] [-z
subdir of
$zroot
]
usage: setup-timezone [-h] [-k|-i] [-z
TIMEZONE
]
Sets the timezone for the system.
...
...
@@ -16,7 +16,7 @@ options:
-h Show this help
-i Install tzdata and symlink instead of making a copy
-k Keep previous copies of tzdata
-z S
pecify the timezone as a subdirectory of
$zroot
-z S
et given timezone. (relative
$zroot
)
__EOF__
exit
1
}
...
...
@@ -64,7 +64,7 @@ while getopts "hikz:" opt; do
h
)
usage
;;
i
)
INSTALL_TZDATA
=
true
;;
k
)
KEEP_TZDATA
=
true
;;
z
)
ZONE
INFODIR
=
"
$OPTARG
"
;;
z
)
ZONE
=
"
$OPTARG
"
;;
esac
done
...
...
@@ -87,8 +87,8 @@ fi
while
true
;
do
if
[
-n
"
$ZONE
INFODIR
"
]
;
then
setup_tz
"
$
ZONEINFODIR
"
if
[
-n
"
$ZONE
"
]
;
then
setup_tz
"
$
zroot
"
/
"
$ZONE
"
break
fi
...
...
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