forked from loftuxab/alfresco-ubuntu-install
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·97 lines (89 loc) · 3.08 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/bin/bash
# -------
# Script for install of Alfresco
#
# Copyright 2013-2017 Loftux AB, Peter Löfgren
# Copyright 2020 Salvatore De Paolis <[email protected]> Iurit
# Distributed under the Creative Commons Attribution-ShareAlike 3.0 Unported License (CC BY-SA 3.0)
# -------
source src/vars.sh
source src/urls.sh
source src/packages.sh
echo -n "Path for Alfresco Debian installer temporary files (~/alfinst): "
read;
test -z $REPLY || TMP_INSTALL=$REPLY
test -d $TMP_INSTALL && (rm -rf $TMP_INSTALL && mkdir $TMP_INSTALL) || mkdir $TMP_INSTALL
pushd $TMP_INSTALL
echog "Alfresco Debian installer by Iurit."
echog "Please read the documentation at"
echog "https://github.com/iwkse/alfresco-debian-install."
if [ $# -eq 0 ]; then
apt_update
check_tools
check_remote_urls
locale_support
security_limits
tomcat_install
nginx_install
java_install
libreoffice_install
imagemagick_install
basicsupport_install
keystore_install
wars_install
apply_wars
solr_install
bart_install
else
if [ "$1" = 'tomcat' ]; then
tomcat_install
fi
if [ "$1" = 'wars' ]; then
wars_install
fi
if [ "$1" = 'nginx' ]; then
nginx_install
fi
if [ "$1" = 'java' ]; then
java_install
fi
fi
popd
rm -rf $TMP_INSTALL
echog "- - - - - - - - - - - - - - - - -"
echo "Scripted install complete"
echo
echor "Manual tasks remaining:"
echo
echo "1. Add database. Install scripts available in $ALF_HOME/scripts"
echor " It is however recommended that you use a separate database server."
echo
echo "2. Verify Tomcat memory and locale settings in the file"
echo " $ALF_HOME/alfresco-service.sh."
echo " Alfresco runs best with lots of memory. Add some more to \"lots\" and you will be fine!"
echo " Match the locale LC_ALL (or remove) setting to the one used in this script."
echo " Locale setting is needed for LibreOffice date handling support."
echo
echo "3. Update database and other settings in alfresco-global.properties"
echo " You will find this file in $CATALINA_HOME/shared/classes"
echor " Really, do this. There are some settings there that you need to verify."
echo
echo "4. Update properties for BART (if installed) in $ALF_HOME/scripts/bart/alfresco-bart.properties"
echo " DBNAME,DBUSER,DBPASS,DBHOST,REC_MYDBNAME,REC_MYUSER,REC_MYPASS,REC_MYHOST,DBTYPE "
echo
echo "5. Update cpu settings in $ALF_HOME/scripts/limitconvert.sh if you have more than 2 cores."
echo
echo "6. Start nginx if you have installed it: sudo service nginx start"
echo
echo "7. Start Alfresco/tomcat:"
echo " $ALF_HOME/alfresco-service.sh start"
echo
echo
echo "${warn}${bldblu} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${warn}"
echog "Thanks for using Alfresco Debian installer by Iurit."
echog "This is a port of the Alfresco Ubuntu installer by Loftux AB"
echog "Please visit https://loftux.com for more Alfresco Services and add-ons."
echog "You are welcome to contact us at [email protected]"
echo "${warn}${bldblu} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ${warn}"
echo
exec bash