1
0

Remplacement de analyzer.php par analyzer.sh permet de retirer la dependances à php et de passer en full bash

This commit is contained in:
unfr
2025-02-02 11:49:12 +01:00
parent 437932dacd
commit 1bba50c678
6 changed files with 82 additions and 140 deletions

View File

@@ -46,7 +46,7 @@ if command -v mediainfo > /dev/null 2>&1; then
else
echo -e "${ROUGE}mediainfo est manquant. Installation en cours...${NORMAL}"
curl -L -o "$BIN_DIR/mediainfo" "https://mediaarea.net/download/binary/mediainfo/20.09/mediainfo-20.09.glibc2.3-x86_64.AppImage"
chmod +x "$BIN_DIR/mediainfo"
chmod 777 "$BIN_DIR/mediainfo"
LISTE_APPLIS+=("$BIN_DIR/mediainfo")
echo -e "${VERT}mediainfo installé dans $BIN_DIR${NORMAL}"
fi
@@ -61,7 +61,7 @@ else
# Recherche et déplacement du binaire sqlite3 uniquement
find "$BIN_DIR" -type f -name "sqlite3" -exec mv {} "$BIN_DIR/sqlite3" \;
chmod +x "$BIN_DIR/sqlite3"
chmod 777 "$BIN_DIR/sqlite3"
# Nettoyage des fichiers inutiles
rm -rf sqlite-tools.zip "$BIN_DIR/sqlite-tools-linux-x64-3480000" "$BIN_DIR/sqldiff" "$BIN_DIR/sqlite3_analyzer" "$BIN_DIR/sqlite3_rsync"
@@ -76,7 +76,7 @@ if command -v jq > /dev/null 2>&1; then
else
echo -e "${ROUGE}jq est manquant. Installation en cours...${NORMAL}"
curl -L -o "$BIN_DIR/jq" "https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64"
chmod +x "$BIN_DIR/jq"
chmod 777 "$BIN_DIR/jq"
LISTE_APPLIS+=("$BIN_DIR/jq")
echo -e "${VERT}jq installé dans $BIN_DIR${NORMAL}"
fi
@@ -113,7 +113,7 @@ echo -e "$BLEU""Téléchargement de autopost""$NORMAL"
mkdir -p "$AUTOPOST_DIR"
# Télécharger les fichiers dans autopost
wget -q -O "$AUTOPOST_DIR/analyzer.php" "https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/analyzer.php"
wget -q -O "$AUTOPOST_DIR/analyzer.php" "https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/analyzer.sh"
wget -q -O "$AUTOPOST_DIR/common.sh" "https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/common.sh"
wget -q -O "$AUTOPOST_DIR/posteur.sh" "https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/posteur.sh"