Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WTF Is this????
- # The temp files are for storing working results so we don't call commands many
- # times (gives inconsistent results, maybe adds load on things I don't want to
- # such as RAID controllers). They must not exist -- if they did, someone would
- # symlink them to /etc/passwd and then run this program as root. Call this
- # function with "rm" or "touch" as an argument.
- temp_files() {
- for file in /tmp/percona-toolkit /tmp/percona-toolkit2; do
- case "$1" in
- touch)
- if ! touch "${file}"; then
- echo "I can't make my temp file ${file}";
- exit 1;
- fi
- ;;
- rm)
- rm -f "${file}"
- ;;
- esac
- done
- }
Add Comment
Please, Sign In to add comment