Revision 8716981b
Added by Andreas Kohlbecker almost 3 years ago
scripts/admin/update-dependencies.sh | ||
---|---|---|
18 | 18 |
unset multisite |
19 | 19 |
fi |
20 | 20 |
|
21 |
if [[ -z "${site_url}${multisite}" ]]; then |
|
22 |
print_help="1" |
|
23 |
fi |
|
24 |
|
|
21 | 25 |
# -- help |
22 | 26 |
if [[ "$print_help" == "1" ]]; then |
23 |
echo "USAGE: update-dependencies.sh [--deactivate-install] [--multi-site] [--mailto <ADDRESS>]" |
|
24 |
echo " --deactivate-install : The install.php will be hidden by appending '.off' to the filename" |
|
25 |
echo " -h, --help: Print this help text" |
|
26 |
echo " --mailto <ADDRESS>: send a email to the ADDRESS with a log of the update process" |
|
27 |
echo " --multi-site: Do a multi-site update. Requires dataportals-drush. See https://dev.e-taxonomy.eu/svn/trunk/server-scripts/dataportal-admin/" |
|
28 |
echo " --site-url: The site url to be used with drush. This option disables the --multi-site option" |
|
27 |
|
|
28 |
cat << "EOF" |
|
29 |
Upadates all composer dependencies including the drupal core code as well as modules. |
|
30 |
Prior starting the upgrade process a backup of the drupal-cdm-dataportal installation |
|
31 |
is created in $HOME/drupal-cdm-dataportal-backups/. |
|
32 |
Some files in ./web/ which may be modified for specific setups are preserved during the |
|
33 |
update process: |
|
34 |
* web/.haccess* |
|
35 |
* web/robots*.txt |
|
36 |
* all symbolic links except for web/polyfills as this is managed through composer. |
|
37 |
|
|
38 |
USAGE: update-dependencies.sh [--deactivate-install] [--multi-site] [--mailto <ADDRESS>] |
|
39 |
--deactivate-install : The install.php will be hidden by appending '.off' to the filename |
|
40 |
-h, --help: Print this help text |
|
41 |
--mailto <ADDRESS>: send a email to the ADDRESS with a log of the update process |
|
42 |
--multi-site: Do a multi-site update. Requires dataportals-drush. See https://dev.e-taxonomy.eu/svn/trunk/server-scripts/dataportal-admin/ |
|
43 |
--site-url: The site url to be used with drush. This option disables the --multi-site option |
|
44 |
EOF |
|
29 | 45 |
exit 0 |
30 | 46 |
fi |
31 | 47 |
|
... | ... | |
51 | 67 |
# .htaccess.dist is provided by the drupal/drupal package und must not be in the backup |
52 | 68 |
rm -f ${TMP}/.htaccess.dist |
53 | 69 |
cp -a web/robots*.txt ${TMP}/ |
70 |
# preserve all symlinks |
|
71 |
find web/ -maxdepth 1 -type l -exec cp -a {} ${TMP}/ \; |
|
54 | 72 |
|
55 | 73 |
# -- setup |
56 | 74 |
|
... | ... | |
95 | 113 |
cp web/.htaccess web/.htaccess.dist |
96 | 114 |
cp -a ${TMP}/.htaccess* web/ |
97 | 115 |
cp -a ${TMP}/robots*.txt web/ |
116 |
find ${TMP} -maxdepth 1 -type l -exec cp -a {} web/ \; |
|
98 | 117 |
|
99 | 118 |
if (( deactivate_install == 1 )); then |
100 | 119 |
# hide the install.php |
Also available in: Unified diff
update script with more doc and preserving symlinks