forked from obel1x/fedora-OEMDRV
Make use of config.d/configure.conf file for first setup
This commit is contained in:
@@ -72,6 +72,24 @@ if [[ ! -z "${DISTCONFIGPATH_SRC}" ]]; then
|
||||
fi
|
||||
echo "Sucessfully synced."
|
||||
echo ""
|
||||
|
||||
# Check, if we are in configure-mode and if so, remove the file and reread the now new synced configuration
|
||||
if [ -f $(dirname "$0")/../config.d/configure.conf ]; then
|
||||
#Check if configuration was obtained by sync
|
||||
if [ -f $(dirname "$0")/../config/setup_system.conf ]; then
|
||||
echo "Existing configuration found in Repository, removing configure-mode and reread the configuration."
|
||||
rm -f $(dirname "$0")/../config.d/configure.conf.bak >/dev/null
|
||||
mv $(dirname "$0")/../config.d/configure.conf $(dirname "$0")/../config.d/configure.conf.bak
|
||||
source $(dirname "$0")/../config/setup_system.conf
|
||||
else
|
||||
echo "System is in configure-mode and configuration repository was found and synced, but still not configuration was found"
|
||||
echo "checking file $(dirname "$0")/../config/setup_system.conf"
|
||||
echo ""
|
||||
echo "Please make a inital copy of config/setup_system.conf.dist to config/setup_system.conf and check all settings there."
|
||||
echo "Then rerun the logon script to sync the file to your repository."
|
||||
echo "Press any key to continue" && read -n 1 -s -r && exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
#Check if Repository is defined
|
||||
if [ "${CLIENT_SOFTWARE_DST}." == "." ]; then
|
||||
|
||||
Reference in New Issue
Block a user