Initial commit

This commit is contained in:
enzo 2026-05-12 22:36:36 +02:00
commit 184b0e6033
18 changed files with 1178 additions and 0 deletions

30
install.sh Normal file
View file

@ -0,0 +1,30 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV_DIR="$SCRIPT_DIR/.venv"
BIN_PATH="/usr/local/bin/fullupdater"
echo "=== Full Updater - Installation ==="
# Créer le venv
if [ ! -d "$VENV_DIR" ]; then
echo "Création du venv..."
python3 -m venv "$VENV_DIR"
fi
echo "Installation des dépendances..."
"$VENV_DIR/bin/pip" install --upgrade pip
"$VENV_DIR/bin/pip" install -r "$SCRIPT_DIR/requirements.txt"
# Créer le wrapper
cat > "$BIN_PATH" << 'EOF'
#!/bin/bash
SCRIPT_DIR="/opt/full-updater"
source "$SCRIPT_DIR/.venv/bin/activate"
python3 -m full_updater "$@"
EOF
chmod +x "$BIN_PATH"
echo "Installation terminée. Lancez 'fullupdater'."