#!/bin/bash REMOTE_URL="https://minio2.hibas123.de/share/fba.tar" RESULT_DIR=/var/www/ wget $REMOTE_URL FILE_PATH=$(pwd)/fba.tar cd $RESULT_DIR tar -xvf $FILE_PATH chown -R caddy:caddy *