[fix] The install should be more streamlined #2
@ -3,6 +3,12 @@
|
|||||||
# Check if root
|
# Check if root
|
||||||
[[ 0 -ne $UID ]] && { echo "Must run as root. Exiting."; exit; }
|
[[ 0 -ne $UID ]] && { echo "Must run as root. Exiting."; exit; }
|
||||||
|
|
||||||
|
# Require a user for exploitation
|
||||||
|
DEFAULT=$(getent group 1000|cut -d: -f1)
|
||||||
|
read -e -i "$DEFAULT" -p "Please provide the system user who will own the project: " USER
|
||||||
|
|
||||||
|
getent group "$USER" &>/dev/null || { echo "Sorry, but '$USER' does not exist on this system. Exiting."; exit 2; }
|
||||||
|
|
||||||
# Propose some packages
|
# Propose some packages
|
||||||
echo -e "\nThe following packages are not mandatory, add them as needed.\n"
|
echo -e "\nThe following packages are not mandatory, add them as needed.\n"
|
||||||
declare -a ADD_PACK
|
declare -a ADD_PACK
|
||||||
@ -30,3 +36,4 @@ git clone https://github.com/ptone/pyosc --depth 1 /tmp/pyosc && cd /tmp/pyosc &
|
|||||||
cd /tmp && git clone https://github.com/Ableton/link.git && cd link && git submodule update --init --recursive && mkdir build && cd build && cmake .. && cmake --build .
|
cd /tmp && git clone https://github.com/Ableton/link.git && cd link && git submodule update --init --recursive && mkdir build && cd build && cmake .. && cmake --build .
|
||||||
cd /tmp/ && git clone --recursive https://github.com/gonzaloflirt/link-python.git && cd link-python && mkdir build && cd build && cmake .. && cmake --build .
|
cd /tmp/ && git clone --recursive https://github.com/gonzaloflirt/link-python.git && cd link-python && mkdir build && cd build && cmake .. && cmake --build .
|
||||||
cd /opt/ && git clone https://git.interhacker.space/teamlaser/LJ
|
cd /opt/ && git clone https://git.interhacker.space/teamlaser/LJ
|
||||||
|
chown -R $USER /opt/LJ
|
||||||
|
Loading…
Reference in New Issue
Block a user