Skip to content
Snippets Groups Projects
Commit 3ad1a1f7 authored by bta's avatar bta
Browse files

Do not overwrite the local sysconfig files.

They could contain local modification made by the admin,
so we will just create them when they are not present,
and leave them as they are if they are already on the machine.
parent 17580785
No related branches found
No related tags found
No related merge requests found
......@@ -159,9 +159,16 @@ echo
echo
# sysconfig
# If the admin has created/modified the files, we will not overwrite them.
echo -e "\e[1mDownloading sysconfig files...\e[0m"
cd /etc/sysconfig
downloadFiles "$GIT_URL/$GIT_BASE_DIR/$GIT_BRANCH/sysconfig" ${SYSCONFIG_FILES[@]}
for conffile in ${SYSCONFIG_FILES[@]}; do
if [ -e "${conffile}" ]; then
echo "Not overwriting existing file ${conffile}, skipping it."
else
downloadFiles "$GIT_URL/$GIT_BASE_DIR/$GIT_BRANCH/sysconfig" "${conffile}"
fi
done
echo
echo
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment