Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Commit

Permalink
F: #165 Setup TIMEZONE
Browse files Browse the repository at this point in the history
Signed-off-by: kvaps <[email protected]>
  • Loading branch information
kvaps committed Jun 27, 2019
1 parent c8d7b83 commit 25b1ab3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/etc/one-context.d/loc-09-timezone
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

# -------------------------------------------------------------------------- #
# Copyright 2010-2019, OpenNebula Systems #
# #
# Licensed under the Apache License, Version 2.0 (the "License"); you may #
# not use this file except in compliance with the License. You may obtain #
# a copy of the License at #
# #
# http://www.apache.org/licenses/LICENSE-2.0 #
# #
# Unless required by applicable law or agreed to in writing, software #
# distributed under the License is distributed on an "AS IS" BASIS, #
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
# See the License for the specific language governing permissions and #
# limitations under the License. #
#--------------------------------------------------------------------------- #

if [ -z "$TIMEZONE" ]; then
exit 0
fi

if [ -f "/usr/share/zoneinfo/$TIMEZONE" ]; then
ln -sf "/usr/share/zoneinfo/$TIMEZONE" /etc/localtime
fi

1 comment on commit 25b1ab3

@GitCop
Copy link

@GitCop GitCop commented on 25b1ab3 Jun 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

  • Subject needs to conform to "%{type} #%{issue_number}: %{description}"
  • Check your commit type, not a valid one.

Guidelines are available at https://github.com/OpenNebula/one/blob/master/share/doc/dev/COMMIT_MESSAGES.md


This message was auto-generated by https://gitcop.com

Please sign in to comment.