#!/bin/bash

## Copyright (C) 2022 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

#set -x
set -e

# shellcheck source=../libexec/helper-scripts/use_leaprun.sh
source "${HELPER_SCRIPTS_PATH:-}"/usr/libexec/helper-scripts/use_leaprun.sh

if [ "${use_leaprun}" = 'yes' ]; then
  "${leaprun_exe}" onion-time-pre-script
else
  sudo -u sdwdate /usr/libexec/helper-scripts/onion-time-pre-script
fi
