UI improvements

This commit is contained in:
Arinerron 2019-03-28 22:36:41 -07:00
parent ad9393805f
commit 1a155f8668
No known key found for this signature in database
GPG Key ID: 99383627861C62F0
2 changed files with 20 additions and 8 deletions

View File

@ -22,20 +22,26 @@ fi
# install basic dependencies # install basic dependencies
pacman --needed --noconfirm -S git curl python python-pip tor echo -e "\033[0;32mInstalling apt dependencies...\033[0m"
pacman --needed --noconfirm -S git curl python python-pip tor > /dev/null
# get the repository # get the repository
echo -e "\033[0;32mCloning Onionr repository...\033[0m"
rm -rf "$OUTPUT_DIR" "$DATA_DIR" "$LOG_DIR" rm -rf "$OUTPUT_DIR" "$DATA_DIR" "$LOG_DIR"
git clone https://gitlab.com/beardog/onionr "$OUTPUT_DIR" git clone --quiet https://gitlab.com/beardog/onionr "$OUTPUT_DIR" > /dev/null
cd "$OUTPUT_DIR" cd "$OUTPUT_DIR"
git checkout "$BRANCH" git checkout -q "$BRANCH" > /dev/null
# install python dependencies # install python dependencies
pip3 install --no-input -r "$OUTPUT_DIR/requirements.txt" --require-hashes echo -e "\033[0;32mInstalling pip dependencies...\033[0m"
pip3 install --no-input -r "$OUTPUT_DIR/requirements.txt" --require-hashes > /dev/null
# create nologin onionr user if not exists # create nologin onionr user if not exists

View File

@ -22,20 +22,26 @@ fi
# install basic dependencies # install basic dependencies
apt install -y git curl python3.7 python3-pip python3-setuptools tor echo -e "\033[0;32mInstalling apt dependencies...\033[0m"
apt install -y git curl python3.7 python3-pip python3-setuptools tor > /dev/null
# get the repository # get the repository
echo -e "\033[0;32mCloning Onionr repository...\033[0m"
rm -rf "$OUTPUT_DIR" "$DATA_DIR" "$LOG_DIR" rm -rf "$OUTPUT_DIR" "$DATA_DIR" "$LOG_DIR"
git clone https://gitlab.com/beardog/onionr "$OUTPUT_DIR" git clone --quiet https://gitlab.com/beardog/onionr "$OUTPUT_DIR" > /dev/null
cd "$OUTPUT_DIR" cd "$OUTPUT_DIR"
git checkout "$BRANCH" git checkout -q "$BRANCH" > /dev/null
# install python dependencies # install python dependencies
python3.7 -m pip install --no-input -r "$OUTPUT_DIR/requirements.txt" --require-hashes echo -e "\033[0;32mInstalling pip dependencies...\033[0m"
python3.7 -m pip install --no-input -r "$OUTPUT_DIR/requirements.txt" --require-hashes > /dev/null
# create nologin onionr user if not exists # create nologin onionr user if not exists