Initial commit: Implementiere PiCopy - Automatischer USB-Kopierdienst mit Web-Interface, einschließlich Installations- und Bereitstellungsskripten sowie Systemd-Service.

This commit is contained in:
2026-05-09 00:55:47 +02:00
commit 59ed605ed4
5 changed files with 639 additions and 0 deletions

21
deploy.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
# deploy.sh - Überträgt PiCopy zum Pi und installiert es
# Verwendung: bash deploy.sh
# Benötigt: sshpass (brew install sshpass)
PI_HOST="10.0.100.61"
PI_USER="tobias"
PI_PASS="dmu7uqMH9roYzdtovlm0XfXT6"
REMOTE="/home/tobias/picopy_deploy"
SSH="sshpass -p '$PI_PASS' ssh -o StrictHostKeyChecking=no $PI_USER@$PI_HOST"
SCP="sshpass -p '$PI_PASS' scp -o StrictHostKeyChecking=no"
echo ">> Dateien übertragen..."
eval "$SCP -r $(pwd)/. $PI_USER@$PI_HOST:$REMOTE/"
echo ">> Installation starten..."
eval "$SSH 'cd $REMOTE && sudo bash install.sh'"
echo ">> Fertig!"
eval "$SSH 'sudo systemctl status picopy --no-pager'"