From fce11134d85afe297f20f8a5a8b90824299a1c13 Mon Sep 17 00:00:00 2001 From: masterdraco Date: Sun, 23 Feb 2025 23:27:32 +0100 Subject: [PATCH] fixed install.sh --- install.sh | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/install.sh b/install.sh index cbbb609..f5e6531 100644 --- a/install.sh +++ b/install.sh @@ -3,7 +3,6 @@ set -e # Git repository configuration GIT_REPO="http://192.168.0.236:3000/masterdraco/torrent" -REPO_CREDENTIALS="masterdraco:mlvfnj78" # Check root privileges if [ "$EUID" -ne 0 ]; then @@ -31,6 +30,10 @@ for pkg in "${!PKGS[@]}"; do fi done +# Get files from Repo +git pull http://192.168.0.236:3000/masterdraco/torrent.git + + # Create directory structure echo "Creating directory structure..." mkdir -p /etc/torrent @@ -47,24 +50,3 @@ echo "Setting permissions..." chmod 600 /etc/torrent/mover.conf chown root:root /etc/torrent/mover.conf -# Initialize Git repository -if [ ! -d .git ]; then - echo "Initializing Git repository..." - git init - git config user.name "torrent-mover-installer" - git config user.email "installer@localhost" - git remote add origin "http://$REPO_CREDENTIALS@192.168.0.236:3000/masterdraco/torrent.git" -fi - -# Add files to Git -git add . -git commit -m "Initial installation commit" || true - -# Push to remote repository -echo "Pushing to Git repository..." -git push -u origin master - -echo "" -echo "Installation complete!" -echo "Configuration file: /etc/torrent/mover.conf" -echo "Main script: /usr/local/bin/torrent-mover"