downloads/sbmigrate-site
... ...
@@ -7,22 +7,24 @@ INSTALLERCONFIG="$HOME/.sbgrid_installer"
7 7
BACKUPCONFIG="$HOME/.sbgrid_installer_site_migrated"
8 8
SITENAME_FILE="/programs/share/sitename"
9 9
10
-echo "Running pre-migration checks"
10
+echo "SBGrid site migration script"
11
+echo "----------------------------"
12
+echo "Running pre-migration checks:"
11 13
12 14
touch "/programs/share/site_migrate_check" 2>/dev/null
13 15
if [ $? != 0 ]; then
14
- echo "This user cannot write to /programs/share"
15
- echo "Check that you have permission to write to this"
16
- echo "SBGrid software installation. Migration cannot "
17
- echo "continue without write access. "
16
+ echo " This user cannot write to /programs/share."
17
+ echo " Check that you have permission to write to this"
18
+ echo " SBGrid software installation. Migration cannot "
19
+ echo " continue without write access. "
18 20
exit 1
19 21
else
20 22
echo " - Write check passed."
21 23
fi
22 24
23 25
if [ ! -e $INSTALLERCONFIG ]; then
24
- echo "No installation manager configuration found."
25
- echo "Cannot continue migration. Exiting."
26
+ echo " No installation manager configuration found."
27
+ echo " Cannot continue migration. Exiting."
26 28
exit 1
27 29
else
28 30
echo " - $INSTALLERCONFIG config found."
... ...
@@ -33,14 +35,14 @@ if [ -f $SITENAME_FILE ]; then
33 35
DATABASE="/programs/share/packages-${SITENAME}.db"
34 36
echo " - sitename file found."
35 37
else
36
- echo "No site configuration found."
37
- echo "Cannot continue migration. Exiting."
38
+ echo " No site configuration found."
39
+ echo " Cannot continue migration. Exiting."
38 40
exit 1
39 41
fi
40 42
41 43
if [ ! -e "${DATABASE}" ]; then
42
- echo "No software database found."
43
- echo "Cannot continue migration. Exiting."
44
+ echo " No software database found."
45
+ echo " Cannot continue migration. Exiting."
44 46
exit 1
45 47
else
46 48
echo " - database file found at: $DATABASE"