server.js --> server.js + public/autopost.js + views/autopost.html
This commit is contained in:
@@ -88,7 +88,7 @@ BASH_COMPLETION_DIR="$HOME/.bash_completion.d"
|
||||
CONF_SH="$AUTOPOST_DIR/conf.sh"
|
||||
CFG_JS="$AUTOPOST_DIR/config.js"
|
||||
|
||||
mkdir -p "$BIN_DIR" "$AUTOPOST_DIR" "$BASH_COMPLETION_DIR"
|
||||
mkdir -p "$BIN_DIR" "$AUTOPOST_DIR" "$BASH_COMPLETION_DIR" "$AUTOPOST_DIR/views" "$AUTOPOST_DIR/public"
|
||||
|
||||
TMP_DIR="$(mktemp -d)"
|
||||
cleanup(){ rm -rf "$TMP_DIR"; }
|
||||
@@ -104,6 +104,8 @@ FILES["$AUTOPOST_DIR/posteur.sh"]="https://tig.unfr.pw/UNFR/postauto/raw/branch/
|
||||
FILES["$AUTOPOST_DIR/common.sh"]="https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/common.sh"
|
||||
FILES["$BIN_DIR/postauto"]="https://tig.unfr.pw/UNFR/postauto/raw/branch/main/bin/postauto"
|
||||
FILES["$AUTOPOST_DIR/server.js"]="https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/server.js"
|
||||
FILES["$AUTOPOST_DIR/public/autopost.js"]="https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/public/autopost.js"
|
||||
FILES["$AUTOPOST_DIR/views/autopost.html"]="https://tig.unfr.pw/UNFR/postauto/raw/branch/main/autopost/views/autopost.html"
|
||||
|
||||
log "Vérification/MAJ des fichiers…"
|
||||
for LOCAL in "${!FILES[@]}"; do
|
||||
@@ -180,7 +182,7 @@ fi
|
||||
if ! ensure_cmd BDInfo; then
|
||||
log "Installation BDInfo…"
|
||||
pushd "$TMP_DIR" >/dev/null
|
||||
curl -fsSL -o bdinfo.zip "https://github.com/dotnetcorecorner/BDInfo/releases/download/linux-2.0.6/bdinfo_linux_v2.0.6.zip"
|
||||
wget -q -o /dev/null -O bdinfo.zip "https://github.com/dotnetcorecorner/BDInfo/releases/download/linux-2.0.6/bdinfo_linux_v2.0.6.zip"
|
||||
unzip -q bdinfo.zip
|
||||
BDBIN="$(find . -type f -name BDInfo -perm -u+x | head -n1)"
|
||||
[ -n "$BDBIN" ] || die "BDInfo introuvable"
|
||||
@@ -191,7 +193,7 @@ fi
|
||||
if ! ensure_cmd BDInfoDataSubstractor; then
|
||||
log "Installation BDInfoDataSubstractor…"
|
||||
pushd "$TMP_DIR" >/dev/null
|
||||
curl -fsSL -o substractor.zip "https://github.com/dotnetcorecorner/BDInfo/releases/download/linux-2.0.6/bdinfodatasubstractor_linux_v2.0.6.zip"
|
||||
wget -q -o /dev/null -O substractor.zip "https://github.com/dotnetcorecorner/BDInfo/releases/download/linux-2.0.6/bdinfodatasubstractor_linux_v2.0.6.zip"
|
||||
unzip -q substractor.zip
|
||||
SBBIN="$(find . -type f -name BDInfoDataSubstractor -perm -u+x | head -n1)"
|
||||
[ -n "$SBBIN" ] || die "BDInfoDataSubstractor introuvable"
|
||||
|
||||
Reference in New Issue
Block a user