init skript und pfade angepasst
This commit is contained in:
@@ -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,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ~/cycling/.config
|
||||
source ~/cycling/app/.config
|
||||
|
||||
MFA_CODE=$(oathtool --totp -b "$TOTP_SECRET")
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source ~/cycling/.config
|
||||
source ~/cycling/app/.config
|
||||
|
||||
ACCESS_TOKEN="$1"
|
||||
FILE="$2"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#!/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 |
|
||||
while read path action file; do
|
||||
|
||||
Reference in New Issue
Block a user