compose-website/utils/stop_before_migration
2016-02-11 10:18:16 +00:00

11 lines
167 B
Bash
Executable file

#!/bin/bash -eux
domain=$1
ip=$2
cd /data/domains/$domain
./scripts/backup
systemctl stop u@$domain
systemctl disable u@$domain
tar cvzf /home/core/${domain}.tgz .