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
4b2f418d
Commit
4b2f418d
authored
Apr 23, 2014
by
Natanael Copa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup-timezone: rename 'folder' to 'directory'
This is unix...
parent
f912bc78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
setup-timezone.in
setup-timezone.in
+4
-4
No files found.
setup-timezone.in
View file @
4b2f418d
...
...
@@ -14,7 +14,7 @@ Sets the timezone for the system.
options:
-h Show this help
-z Specify the timezone as a sub
folder
of
$zroot
-z Specify the timezone as a sub
directory
of
$zroot
__EOF__
exit
1
}
...
...
@@ -45,7 +45,7 @@ valid_tz() {
while
getopts
"hz:"
opt
;
do
case
$opt
in
h
)
usage
;;
z
)
ZONEINFO
FOLDE
R
=
"
$OPTARG
"
;;
z
)
ZONEINFO
DI
R
=
"
$OPTARG
"
;;
esac
done
...
...
@@ -57,8 +57,8 @@ zonepath=$(cat /etc/TZ 2>/dev/null)
[
-z
"
$zonepath
"
]
&&
zonepath
=
"UTC"
while
true
;
do
if
[
-n
"
$ZONEINFO
FOLDE
R
"
]
;
then
TZ
=
$(
posixtz
"
$ZONEINFO
FOLDER
"
)
||
echo
"Failed to convert '
$ZONEINFOFOLDE
R
' to POSIX TZ"
if
[
-n
"
$ZONEINFO
DI
R
"
]
;
then
TZ
=
$(
posixtz
"
$ZONEINFO
DIR
"
)
||
echo
"Failed to convert '
$ZONEINFODI
R
' to POSIX TZ"
if
[
-n
"
$TZ
"
]
;
then
echo
$TZ
>
/etc/TZ
||
rm
-f
/etc/TZ
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