-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprepare_linux_vm.sh
More file actions
19 lines (16 loc) · 1.62 KB
/
Copy pathprepare_linux_vm.sh
File metadata and controls
19 lines (16 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
SCRIPT_LOCATION=/etc/azure
mkdir -p $SCRIPT_LOCATION
wget -q https://raw.githubusercontent.com/trinadhkotturu/IgnitePreDayLab/master/mysql-app-consistent-backup-env.sh -O $SCRIPT_LOCATION/mysql-app-consistent-backup-env.sh
wget -q https://raw.githubusercontent.com/trinadhkotturu/IgnitePreDayLab/master/mysql-app-consistent-backup-funcs.sh -O $SCRIPT_LOCATION/mysql-app-consistent-backup-funcs.sh
wget -q https://raw.githubusercontent.com/trinadhkotturu/IgnitePreDayLab/master/mysql-app-consistent-backup.sh -O $SCRIPT_LOCATION/mysql-app-consistent-backup.sh
wget -q https://raw.githubusercontent.com/trinadhkotturu/IgnitePreDayLab/master/pre-mysql-backup.sh -O $SCRIPT_LOCATION/pre-mysql-backup.sh
wget -q https://raw.githubusercontent.com/trinadhkotturu/IgnitePreDayLab/master/post-mysql-backup.sh -O $SCRIPT_LOCATION/post-mysql-backup.sh
wget -q https://raw.githubusercontent.com/trinadhkotturu/IgnitePreDayLab/master/VMSnapshotScriptPluginConfig.json -O $SCRIPT_LOCATION/VMSnapshotScriptPluginConfig.json
sed -i 's#"preScriptLocation" : ""#"preScriptLocation" : "'"$SCRIPT_LOCATION"'/pre-mysql-backup.sh"#g' $SCRIPT_LOCATION/VMSnapshotScriptPluginConfig.json
sed -i 's#"postScriptLocation" : ""#"postScriptLocation" : "'"$SCRIPT_LOCATION"'/post-mysql-backup.sh"#g' $SCRIPT_LOCATION/VMSnapshotScriptPluginConfig.json
chmod 700 $SCRIPT_LOCATION/pre-mysql-backup.sh
chmod 700 $SCRIPT_LOCATION/post-mysql-backup.sh
chmod 700 $SCRIPT_LOCATION/mysql-app-consistent-backup-env.sh
chmod 700 $SCRIPT_LOCATION/mysql-app-consistent-backup-funcs.sh
chmod 700 $SCRIPT_LOCATION/mysql-app-consistent-backup.sh
chmod 600 $SCRIPT_LOCATION/VMSnapshotScriptPluginConfig.json