init skript und pfade angepasst

This commit is contained in:
2026-05-23 11:43:12 +02:00
parent b35b729f2f
commit 23d598fb5c
4 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -1 +1,5 @@
mkdir -p ~/cycling/{inbox,uploaded,failed,logs} mkdir -p ~/cycling/{app,inbox,uploaded,failed,logs}
cp .config ~/cycling/app/
cp login.sh ~/cycling/app/
cp upload.sh ~/cycling/app/
cp watcher.sh ~/cycling/app/
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ~/cycling/.config source ~/cycling/app/.config
MFA_CODE=$(oathtool --totp -b "$TOTP_SECRET") MFA_CODE=$(oathtool --totp -b "$TOTP_SECRET")
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ~/cycling/.config source ~/cycling/app/.config
ACCESS_TOKEN="$1" ACCESS_TOKEN="$1"
FILE="$2" FILE="$2"
+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source ~/cycling/.config source ~/cycling/app/.config
ACCESS_TOKEN=$(./login.sh) ACCESS_TOKEN=$(~/cycling/app/login.sh)
inotifywait -m ~/cycling/inbox -e create | inotifywait -m ~/cycling/inbox -e create |
while read path action file; do while read path action file; do