dana-medical-site/.deploy/remote-secure-dana.sh
2026-10-14 13:33:13 +00:00

13 lines
415 B
Bash

#!/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")"