#!/bin/bash


# Files & Dirs
sudo mkdir -p \
/opt/appdata/.docker-compose \
/opt/scripts_local \
/opt/secured \
/opt/shared \
/var/log/rclone \
/var/log/docker

sudo touch \
/opt/appdata/.docker-compose/docker-compose.yml \
/opt/appdata/.docker-compose/.env

sudo chown root:sysadmin \
/opt \
/mnt 
sudo chmod 771 \
/opt \
/mnt 

sudo chown root:sysadmin -R \
/opt/scripts_local \
/opt/secured \
/opt/shared \
/var/log/docker

sudo chmod 771 -R \
/opt/scripts_local \
/opt/secured \
/opt/shared \
/var/log/docker