saving uncommitted changes in /etc prior to emerge run

This commit is contained in:
2015-09-06 20:24:47 +02:00
committed by Hans Wurst
parent ed4c217b3e
commit 902bd7c537
45 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/bin/sh
echo -e "\033[1;33mcompressing logs...\033[0m"
find "$(portageq envvar PORT_LOGDIR)" -type f -name "*.log" -exec xz -z -9 '{}' \; && echo -e "\033[1;32mcompressing logs finished!\033[0m" || echo -e "\033[1;31mfailed!\033[0m"
# updatedb
/root/updatedb.sh
echo -e "\033[1;33mstarting database-update...\033[0m"
updatedb && echo -e "\033[1;32mupdating database finished!\033[0m" || echo -e "\033[1;31mfailed!\033[0m"