Skip to content

Commit

Permalink
use timedatectl
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Apr 27, 2021
1 parent cc510c5 commit a48d8a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,10 @@ if [ "$MODE" == "test" ]; then
# problems with weekly checks that may be avoided by this
# rand=$(echo "$RANDOM * $RANDOM * $RANDOM / 1000" | bc -l | sed 's/\..*$//')
# randdate=$(date -d "@$rand" "+%Y%m%d %H:%M")
randdate=$(date -d "-1 day +1 hour -1 minute" "+%Y%m%d %H:%M")
randdate=$(date -d "-1 day +1 hour -1 minute" "+%Y-%m-%d %H:%M:%S")
echo "$randdate"
sudo date -s "$randdate"
# sudo date -s "$randdate"
sudo timedatectl set-time "$randdate"

if [ "$WORKFLOWS" == "true" ] && [ "$SETUP_CVMFS" == "true" ]; then
"$GITHUB_ACTION_PATH"/cvmfs/setup_cvmfs.sh
Expand Down

0 comments on commit a48d8a1

Please sign in to comment.