test
This commit is contained in:
parent
80195a36c0
commit
57d4348a30
@ -6,12 +6,39 @@ source "$SCRIPTDIR/common/colors.sh"
|
||||
source "$SCRIPTDIR/common/functions.sh"
|
||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||
|
||||
printf "$COL_LIGHT_BLUE" "* Checking Current Timezone"
|
||||
current_timezone=`cat /etc/timezone`
|
||||
|
||||
echo $desired_timezone
|
||||
get_tz() {
|
||||
|
||||
local tz_type="$1"
|
||||
|
||||
printf "$COL_LIGHT_BLUE" "* Checking Current Timezone in $tz_type"
|
||||
|
||||
if [ "$tz_type" == "/etc/timezone" ]; then
|
||||
current_timezone=`cat /etc/timezone`
|
||||
elif [ "$tz_type" == "timedatectl" ]; then
|
||||
current_timezone=$(timedatectl | grep "zone" | sed -e 's/^[ ]*Time zone: \(.*\) (.*)$/\1/g')
|
||||
fi
|
||||
|
||||
printf "$COL_LIGHT_BLUE" "* Timezone in $tz_type is set to $current_timezone"
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
declare -a TIMEPLACES=("/etc/timezone" "timedatectl")
|
||||
|
||||
for timeitem in "${TIMEPLACES[@]}"
|
||||
do
|
||||
get_tz $timeitem
|
||||
done
|
||||
|
||||
exit
|
||||
|
||||
|
||||
|
||||
printf "$COL_LIGHT_BLUE" "* Checking Current Timezone in "
|
||||
current_timezone=`cat /etc/timezone`
|
||||
|
||||
if [ "$desired_timezone" == 0 ]; then
|
||||
sudo dpkg-reconfigure tzdata
|
||||
else
|
||||
|
||||
@ -4,18 +4,7 @@
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
source "$SCRIPTDIR/common/colors.sh"
|
||||
source "$SCRIPTDIR/common/functions.sh"
|
||||
|
||||
load_defaults=""
|
||||
case "$1" in
|
||||
defaults) load_defaults="defaults";;
|
||||
"") load_defaults="";;
|
||||
*) echo "'$1' is not a valid template-setup command";;
|
||||
esac
|
||||
if [ "$load_defaults" == "defaults" ]; then
|
||||
source $SCRIPTDIR/defaults-dbb.sh
|
||||
else
|
||||
source $SCRIPTDIR/defaults-blank.sh
|
||||
fi
|
||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||
|
||||
pkgmgr_update
|
||||
|
||||
|
||||
@ -4,18 +4,7 @@
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
source "$SCRIPTDIR/common/colors.sh"
|
||||
source "$SCRIPTDIR/common/functions.sh"
|
||||
|
||||
load_defaults=""
|
||||
case "$1" in
|
||||
defaults) load_defaults="defaults";;
|
||||
"") load_defaults="";;
|
||||
*) echo "'$1' is not a valid template-setup command";;
|
||||
esac
|
||||
if [ "$load_defaults" == "defaults" ]; then
|
||||
source $SCRIPTDIR/defaults-dbb.sh
|
||||
else
|
||||
source $SCRIPTDIR/defaults-blank.sh
|
||||
fi
|
||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||
|
||||
printf "$COL_LIGHT_BLUE" "* Vaccuming Systemd Journal"
|
||||
journalctl --vacuum-size=50M
|
||||
|
||||
@ -4,18 +4,7 @@
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
source "$SCRIPTDIR/common/colors.sh"
|
||||
source "$SCRIPTDIR/common/functions.sh"
|
||||
|
||||
load_defaults=""
|
||||
case "$1" in
|
||||
defaults) load_defaults="defaults";;
|
||||
"") load_defaults="";;
|
||||
*) echo "'$1' is not a valid template-setup command";;
|
||||
esac
|
||||
if [ "$load_defaults" == "defaults" ]; then
|
||||
source $SCRIPTDIR/defaults-dbb.sh
|
||||
else
|
||||
source $SCRIPTDIR/defaults-blank.sh
|
||||
fi
|
||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||
|
||||
## Start File Loop
|
||||
## For .dependency files In The dependencies Directory
|
||||
|
||||
@ -4,18 +4,7 @@
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
source "$SCRIPTDIR/common/colors.sh"
|
||||
source "$SCRIPTDIR/common/functions.sh"
|
||||
|
||||
load_defaults=""
|
||||
case "$1" in
|
||||
defaults) load_defaults="defaults";;
|
||||
"") load_defaults="";;
|
||||
*) echo "'$1' is not a valid template-setup command";;
|
||||
esac
|
||||
if [ "$load_defaults" == "defaults" ]; then
|
||||
source $SCRIPTDIR/defaults-dbb.sh
|
||||
else
|
||||
source $SCRIPTDIR/defaults-blank.sh
|
||||
fi
|
||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||
|
||||
printf "$COL_LIGHT_BLUE" "* Checking for topgrade directory"
|
||||
topgrade_install_directory="/opt/topgrade"
|
||||
|
||||
@ -4,18 +4,7 @@
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
source "$SCRIPTDIR/common/colors.sh"
|
||||
source "$SCRIPTDIR/common/functions.sh"
|
||||
|
||||
load_defaults=""
|
||||
case "$1" in
|
||||
defaults) load_defaults="defaults";;
|
||||
"") load_defaults="";;
|
||||
*) echo "'$1' is not a valid template-setup command";;
|
||||
esac
|
||||
if [ "$load_defaults" == "defaults" ]; then
|
||||
source $SCRIPTDIR/defaults-dbb.sh
|
||||
else
|
||||
source $SCRIPTDIR/defaults-blank.sh
|
||||
fi
|
||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||
|
||||
BASHRCFILE="$HOME/.bashrc"
|
||||
|
||||
|
||||
@ -4,18 +4,7 @@
|
||||
SCRIPTDIR=$(dirname $0)
|
||||
source "$SCRIPTDIR/common/colors.sh"
|
||||
source "$SCRIPTDIR/common/functions.sh"
|
||||
|
||||
load_defaults=""
|
||||
case "$1" in
|
||||
defaults) load_defaults="defaults";;
|
||||
"") load_defaults="";;
|
||||
*) echo "'$1' is not a valid template-setup command";;
|
||||
esac
|
||||
if [ "$load_defaults" == "defaults" ]; then
|
||||
source $SCRIPTDIR/defaults-dbb.sh
|
||||
else
|
||||
source $SCRIPTDIR/defaults-blank.sh
|
||||
fi
|
||||
source "$SCRIPTDIR/common/load-defaults.sh"
|
||||
|
||||
|
||||
# TODO setup /etc/hosts with FQDN and FreeIPA servers
|
||||
|
||||
Loading…
Reference in New Issue
Block a user