File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ import_tool_available() {
22
22
}
23
23
24
24
ghe_ssh_mssql () {
25
- ghe-ssh " $opts " " $ssh_config_file_opt " " $GHE_MSSQL_PRIMARY_HOST " " $@ "
25
+ ghe-ssh $opts $ssh_config_file_opt " $GHE_MSSQL_PRIMARY_HOST " " $@ "
26
26
}
27
27
28
28
cleanup () {
29
- rm -rf " $tempdir "
29
+ rm -rf $tempdir
30
30
}
31
31
trap ' cleanup' EXIT INT
32
32
@@ -65,7 +65,7 @@ ghe_remote_version_required "$GHE_HOSTNAME"
65
65
66
66
# The snapshot to restore should be set by the ghe-restore command but this lets
67
67
# us run this script directly.
68
- : " ${GHE_RESTORE_SNAPSHOT:= current} "
68
+ : ${GHE_RESTORE_SNAPSHOT:= current}
69
69
70
70
# The directory holding the snapshot to restore
71
71
snapshot_dir_mssql=" $GHE_DATA_DIR /$GHE_RESTORE_SNAPSHOT /mssql"
79
79
80
80
filename=" ${b##*/ } "
81
81
ghe_verbose " Transferring $filename to appliance host"
82
- cat " $snapshot_dir_mssql /$filename " | ghe_ssh_mssql " sudo tee -a $appliance_dir /$filename >/dev/null 2>&1"
82
+ cat $snapshot_dir_mssql /$filename | ghe_ssh_mssql " sudo tee -a $appliance_dir /$filename >/dev/null 2>&1"
83
83
done
84
84
85
85
# Change owner to mssql:mssql to ready for restore
86
86
ghe_ssh_mssql " sudo chown -R mssql:mssql $appliance_dir "
87
87
88
88
# Invoke restore command
89
- bm_start " $( basename " $0 " ) "
89
+ bm_start " $( basename $0 ) "
90
90
ghe_ssh_mssql -- " ghe-import-mssql" < " /dev/null" 1>&3
91
- bm_end " $( basename " $0 " ) "
91
+ bm_end " $( basename $0 ) "
You can’t perform that action at this time.
0 commit comments