saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
10
backup-paludis/hooks/install_all_post/some.bash
Executable file
10
backup-paludis/hooks/install_all_post/some.bash
Executable 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"
|
||||
Reference in New Issue
Block a user