Clean up /tmp

This commit is contained in:
Radon Rosborough 2020-06-12 18:12:33 -06:00
parent 42769446a0
commit 9ec5ecc224
3 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ set -o pipefail
npm config set unsafe-perm true
PERL_MM_USE_DEFAULT=1 cpan App::cpanminus
rm -rf /tmp/cpan_install_*.txt
# Befunge
npm install -g befunge93 prompt-sync
@ -36,4 +37,6 @@ pip3 install whitespace
# Wolfram Language
python3.7 -m pip install mathics
rm -f /tmp/core-js-banners
rm "$0"

View File

@ -12,6 +12,7 @@ rm watchexec-*.deb
cd /tmp
git clone https://github.com/circulosmeos/gdown.pl.git
mv gdown.pl/gdown.pl /usr/bin/gdown
rm -rf gdown.pl
cd /tmp
wget https://get.haskellstack.org/stable/linux-x86_64-static.tar.gz

View File

@ -5,6 +5,8 @@ set -o pipefail
uid="$1"
rm -rf /tmp/hsperfdata_root
if [[ -n "$uid" ]] && (( "$uid" != 0 )); then
useradd --uid="$uid" --create-home --groups sudo docker
passwd -d docker