mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 8.79 - Clean up extra files
This commit is contained in:
parent
72416330e8
commit
f8a9a306dc
2 changed files with 22 additions and 0 deletions
10
scripts/chapter8/8.79-cleanup.sh
Normal file
10
scripts/chapter8/8.79-cleanup.sh
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm -rf /tmp/*
|
||||||
|
|
||||||
|
find /usr/lib /usr/libexec -name \*.la -delete
|
||||||
|
|
||||||
|
find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf
|
||||||
|
|
||||||
|
userdel -r tester
|
||||||
|
|
|
@ -1474,3 +1474,15 @@ then
|
||||||
stop_script "chapter8/8.78-stripping.sh"
|
stop_script "chapter8/8.78-stripping.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Chapter 8.79
|
||||||
|
# ============
|
||||||
|
echo "Cleaning up extra files"
|
||||||
|
su -c "bash $SCRIPT/chapter8/8.79-cleanup.sh"
|
||||||
|
|
||||||
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter8/8.79-cleanup.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue