Initial commit: Implementiere PiCopy - Automatischer USB-Kopierdienst mit Web-Interface, einschließlich Installations- und Bereitstellungsskripten sowie Systemd-Service.
This commit is contained in:
21
deploy.sh
Normal file
21
deploy.sh
Normal 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'"
|
||||
Reference in New Issue
Block a user