mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-23 02:04:46 +02:00
[Updater] Save diff files into subdirectory
This commit is contained in:
parent
9b526d40a8
commit
96af23e9a2
2
.gitignore
vendored
2
.gitignore
vendored
@ -33,7 +33,7 @@ data/conf/portainer/
|
|||||||
data/gitea/
|
data/gitea/
|
||||||
data/gogs/
|
data/gogs/
|
||||||
data/conf/sogo/plist_ldap
|
data/conf/sogo/plist_ldap
|
||||||
diff_before_update_*
|
update_diffs/
|
||||||
.github/
|
.github/
|
||||||
docker-compose.override.yml
|
docker-compose.override.yml
|
||||||
refresh_images.sh
|
refresh_images.sh
|
||||||
|
@ -328,8 +328,11 @@ if [[ ! "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
DIFF_FILE=diff_before_update_$(date +"%Y-%m-%d-%H-%M-%S")
|
DIFF_DIRECTORY=update_diffs
|
||||||
|
DIFF_FILE=${DIFF_DIRECTORY}/diff_before_update_$(date +"%Y-%m-%d-%H-%M-%S")
|
||||||
echo -e "\e[32mSaving diff to ${DIFF_FILE}...\e[0m"
|
echo -e "\e[32mSaving diff to ${DIFF_FILE}...\e[0m"
|
||||||
|
mkdir -p ${DIFF_DIRECTORY}
|
||||||
|
mv diff_before_update* ${DIFF_DIRECTORY}/ 2> /dev/null
|
||||||
git diff --stat > ${DIFF_FILE}
|
git diff --stat > ${DIFF_FILE}
|
||||||
git diff >> ${DIFF_FILE}
|
git diff >> ${DIFF_FILE}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user