Skip to content

Commit

Permalink
230V schreibt in DB
Browse files Browse the repository at this point in the history
  • Loading branch information
spitzlbergerj committed Mar 14, 2024
1 parent 7576e55 commit 91033aa
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .git_hooks/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
ACHTUNG:
Damit die git hooks funktionieren müssen die beiden Dateien hier ins Verzeichnis .git/hooks kopiert werden
Damit die git hooks funktionieren müssen die beiden Dateien hier ins Verzeichnis .git/hooks kopiert werden.

Außerdem muss ein Verzeichnis .git_sensible_backup angelegt werden

Hier die Kommandos

cd ~/CaravanPi
cp .git_hooks/*commit .git/hooks
chmod +x .git/hooks/*commit
mkdir ~/CaravanPi/.git_sensible_backup
7 changes: 7 additions & 0 deletions install_CaravanPi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,13 @@ install_update_caravanpi() {
fi
fi

# git hooks aktivieren
echo "git hooks anlegen"
cd "$CARAVANPI_DIR"
run_cmd "cp .git_hooks/*commit .git/hooks"
run_cmd "chmod +x .git/hooks/*commit"
run_cmd "mkdir ~/CaravanPi/.git_sensible_backup"

echo
echo "Ein/Ausschalter Skripte installieren"
run_cmd "sudo cp /home/pi/CaravanPi/pishutdown/pishutdown.py /usr/local/bin"
Expand Down

0 comments on commit 91033aa

Please sign in to comment.