Files
zapret.installer-Snowy-Fluffy/installer.sh

25 lines
619 B
Bash
Raw Normal View History

2024-12-24 21:39:52 +03:00
#!/bin/bash
2025-03-20 16:21:00 +03:00
set -e
2025-03-20 15:58:49 +03:00
REPO_DIR="/tmp/zapret.installer"
if [ ! -d "$REPO_DIR" ]; then
cd /tmp || exit
2025-03-20 04:05:10 +03:00
git clone https://github.com/Snowy-Fluffy/zapret.installer.git
2025-03-20 15:58:49 +03:00
else
cd "$REPO_DIR" || exit
if ! git pull; then
echo "Ошибка при обновлении. Удаляю репозиторий и клонирую заново..."
cd /tmp || exit
rm -rf "$REPO_DIR"
git clone https://github.com/Snowy-Fluffy/zapret.installer.git
cd "$REPO_DIR" || exit
fi
2025-03-20 04:05:10 +03:00
fi
2025-03-20 18:31:49 +03:00
chmod +x /tmp/zapret.installer/zapret-control.sh
bash /tmp/zapret.installer/zapret-control.sh
2025-03-20 04:05:10 +03:00