Last changes befor the weekend

This commit is contained in:
Tim Schilling | IuK
2024-11-29 13:18:51 +01:00
parent 86f52430b7
commit b97a69e0e1
2 changed files with 10 additions and 3 deletions
+4 -2
View File
@@ -55,8 +55,8 @@ function dockerremote(){
function sftptransfer(){
#Einrichten der Variablen für Funktion
REMOTE_HOST=$2
REMOTE_USER=$1
REMOTE_HOST=$2
REMOTE_DIR=$3
LOCAL_DIR="./temp"
@@ -96,14 +96,16 @@ rclone mount webdav: "$MOUNT_POINT" --daemon --allow-other --umask 002 || {
log "WebDAV-Freigabe erfolgreich gemountet."
dockerremote "$DOCKER_USER" "$DOCKER_HOST" "bw-export-iuk"
rm -rf ./webdav/
sftptransfer "$SFTP_USER1" "$SFTP_HOST1" "/sftpuser/export/data/"
mv ./temp/* ./webdav/
# Webdav Unmounten
log "Unmounten der WebDAV-Freigabe..."
if mountpoint -q "$MOUNT_POINT"; then