Update installer.sh
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
INSTALL_DIR="/opt/uni"
|
||||||
|
BIN_PATH="/usr/local/bin/uni"
|
||||||
|
|
||||||
|
echo "[1/4] Creating install directory..."
|
||||||
|
sudo mkdir -p "$INSTALL_DIR"
|
||||||
|
|
||||||
|
echo "[2/4] Downloading files..."
|
||||||
|
|
||||||
|
sudo curl -fsSL \
|
||||||
|
https://git.de-roo.org/ben/unified-installer/raw/branch/main/uni \
|
||||||
|
-o "$BIN_PATH"
|
||||||
|
|
||||||
|
sudo curl -fsSL \
|
||||||
|
https://git.de-roo.org/ben/unified-installer/raw/branch/main/uni.py \
|
||||||
|
-o "$INSTALL_DIR/uni.py"
|
||||||
|
|
||||||
|
echo "[3/4] Setting permissions..."
|
||||||
|
sudo chmod +x "$BIN_PATH"
|
||||||
|
sudo chmod +x "$INSTALL_DIR/uni.py"
|
||||||
|
|
||||||
|
echo "[4/4] Done."
|
||||||
|
|
||||||
|
echo "Installed:"
|
||||||
|
echo " CLI: $BIN_PATH"
|
||||||
|
echo " Core: $INSTALL_DIR/uni.py"
|
||||||
|
|
||||||
|
echo "Run with: uni --help"
|
||||||
Reference in New Issue
Block a user