#!/bin/sh set -eu root=/home/mikail/dana-medical chmod 700 "$root/.deploy" find "$root/.deploy" -maxdepth 1 -type f -exec chmod 600 {} \; if [ -f "$root/remote-build-start-dana.sh" ]; then mv "$root/remote-build-start-dana.sh" "$root/.deploy/" chmod 600 "$root/.deploy/remote-build-start-dana.sh" fi printf 'deploy_mode=%s\n' "$(stat -c %a "$root/.deploy")" printf 'env_mode=%s\n' "$(stat -c %a "$root/.env")"