Rushabh Mehta | e67d1fb | 2013-08-05 14:59:54 +0530 | [diff] [blame] | 1 | # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. |
| 2 | # License: GNU General Public License v3. See license.txt |
| 3 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 4 | #!/usr/bin/env python |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 5 | from __future__ import unicode_literals |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 6 | import os, sys |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 7 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 8 | apache_user = None |
| 9 | is_redhat = is_debian = None |
| 10 | root_password = None |
| 11 | |
| 12 | def install(install_path=None): |
| 13 | install_pre_requisites() |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 14 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 15 | if not install_path: |
| 16 | install_path = os.getcwd() |
| 17 | install_erpnext(install_path) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 18 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 19 | post_install(install_path) |
| 20 | |
| 21 | def install_pre_requisites(): |
| 22 | global is_redhat, is_debian |
| 23 | is_redhat, is_debian = validate_install() |
| 24 | if is_redhat: |
| 25 | install_using_yum() |
| 26 | elif is_debian: |
| 27 | install_using_apt() |
| 28 | |
| 29 | install_python_modules() |
| 30 | |
| 31 | print "-"*80 |
| 32 | print "Pre-requisites Installed" |
| 33 | print "-"*80 |
| 34 | |
| 35 | def validate_install(): |
| 36 | import platform |
| 37 | |
| 38 | # check os |
| 39 | operating_system = platform.system() |
| 40 | print "Operating System =", operating_system |
| 41 | if operating_system != "Linux": |
| 42 | raise Exception, "Sorry! This installer works only for Linux based Operating Systems" |
| 43 | |
| 44 | # check python version |
| 45 | python_version = sys.version.split(" ")[0] |
| 46 | print "Python Version =", python_version |
| 47 | if not (python_version and int(python_version.split(".")[0])==2 and int(python_version.split(".")[1]) >= 6): |
| 48 | raise Exception, "Hey! ERPNext needs Python version to be 2.6+" |
| 49 | |
| 50 | # check distribution |
| 51 | distribution = platform.linux_distribution()[0].lower().replace('"', '') |
| 52 | print "Distribution = ", distribution |
Anand Doshi | b1b564c | 2013-07-29 11:44:26 +0530 | [diff] [blame] | 53 | is_redhat = distribution in ("redhat", "centos", "centos linux", "fedora") |
Nabin Hait | ada7099 | 2013-08-20 10:58:07 +0530 | [diff] [blame] | 54 | is_debian = distribution in ("debian", "ubuntu", "elementary os", "linuxmint") |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 55 | |
| 56 | if not (is_redhat or is_debian): |
| 57 | raise Exception, "Sorry! This installer works only with yum or apt-get package management" |
| 58 | |
| 59 | return is_redhat, is_debian |
| 60 | |
| 61 | def install_using_yum(): |
Anand Doshi | e7d77ca | 2013-08-14 15:12:46 +0530 | [diff] [blame] | 62 | packages = "python python-setuptools gcc python-devel MySQL-python httpd git memcached ntp vim-enhanced screen" |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 63 | |
| 64 | print "-"*80 |
| 65 | print "Installing Packages: (This may take some time)" |
| 66 | print packages |
| 67 | print "-"*80 |
| 68 | exec_in_shell("yum install -y %s" % packages) |
| 69 | |
| 70 | if not exec_in_shell("which mysql"): |
| 71 | packages = "mysql mysql-server mysql-devel" |
| 72 | print "Installing Packages:", packages |
| 73 | exec_in_shell("yum install -y %s" % packages) |
| 74 | exec_in_shell("service mysqld restart") |
| 75 | |
| 76 | # set a root password post install |
| 77 | global root_password |
| 78 | print "Please create a password for root user of MySQL" |
| 79 | root_password = (get_root_password() or "erpnext").strip() |
| 80 | exec_in_shell('mysqladmin -u root password "%s"' % (root_password,)) |
| 81 | print "Root password set as", root_password |
| 82 | |
| 83 | # install htop |
| 84 | if not exec_in_shell("which htop"): |
| 85 | try: |
| 86 | exec_in_shell("cd /tmp && rpm -i --force http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm && yum install -y htop") |
| 87 | except: |
| 88 | pass |
| 89 | |
| 90 | update_config_for_redhat() |
| 91 | |
| 92 | def update_config_for_redhat(): |
| 93 | import re |
| 94 | |
| 95 | global apache_user |
| 96 | apache_user = "apache" |
| 97 | |
| 98 | # update memcache user |
| 99 | with open("/etc/sysconfig/memcached", "r") as original: |
| 100 | memcached_conf = original.read() |
| 101 | with open("/etc/sysconfig/memcached", "w") as modified: |
| 102 | modified.write(re.sub('USER.*', 'USER="%s"' % apache_user, memcached_conf)) |
| 103 | |
| 104 | # set to autostart on startup |
| 105 | for service in ("mysqld", "httpd", "memcached", "ntpd"): |
| 106 | exec_in_shell("chkconfig --level 2345 %s on" % service) |
| 107 | exec_in_shell("service %s restart" % service) |
| 108 | |
| 109 | def install_using_apt(): |
Anand Doshi | b1b564c | 2013-07-29 11:44:26 +0530 | [diff] [blame] | 110 | exec_in_shell("apt-get update") |
Anand Doshi | e7d77ca | 2013-08-14 15:12:46 +0530 | [diff] [blame] | 111 | packages = "python python-setuptools python-dev build-essential python-pip python-mysqldb apache2 git memcached ntp vim screen htop" |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 112 | print "-"*80 |
| 113 | print "Installing Packages: (This may take some time)" |
| 114 | print packages |
| 115 | print "-"*80 |
| 116 | exec_in_shell("apt-get install -y %s" % packages) |
| 117 | |
| 118 | if not exec_in_shell("which mysql"): |
| 119 | packages = "mysql-server libmysqlclient-dev" |
| 120 | print "Installing Packages:", packages |
| 121 | exec_in_shell("apt-get install -y %s" % packages) |
| 122 | |
| 123 | update_config_for_debian() |
| 124 | |
| 125 | def update_config_for_debian(): |
| 126 | global apache_user |
| 127 | apache_user = "www-data" |
| 128 | |
| 129 | # update memcache user |
| 130 | with open("/etc/memcached.conf", "r") as original: |
| 131 | memcached_conf = original.read() |
| 132 | with open("/etc/memcached.conf", "w") as modified: |
| 133 | modified.write(memcached_conf.replace("-u memcache", "-u %s" % apache_user)) |
| 134 | |
| 135 | exec_in_shell("a2enmod rewrite") |
| 136 | |
| 137 | for service in ("mysql", "apache2", "memcached", "ntpd"): |
| 138 | exec_in_shell("service %s restart" % service) |
| 139 | |
| 140 | def install_python_modules(): |
Anand Doshi | 08352ca | 2013-07-17 08:24:50 +0530 | [diff] [blame] | 141 | python_modules = "pytz python-dateutil jinja2 markdown2 termcolor python-memcached requests chardet dropbox google-api-python-client pygeoip" |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 142 | |
| 143 | print "-"*80 |
| 144 | print "Installing Python Modules: (This may take some time)" |
| 145 | print python_modules |
| 146 | print "-"*80 |
| 147 | |
Anand Doshi | e7d77ca | 2013-08-14 15:12:46 +0530 | [diff] [blame] | 148 | if not exec_in_shell("which pip"): |
| 149 | exec_in_shell("easy_install pip") |
| 150 | |
| 151 | exec_in_shell("pip install --upgrade pip") |
Anand Doshi | 3a6f4f8 | 2013-09-12 19:10:05 +0530 | [diff] [blame] | 152 | exec_in_shell("pip install --upgrade setuptools") |
Anand Doshi | e7d77ca | 2013-08-14 15:12:46 +0530 | [diff] [blame] | 153 | exec_in_shell("pip install --upgrade virtualenv") |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 154 | exec_in_shell("pip install -q %s" % python_modules) |
Anand Doshi | 08352ca | 2013-07-17 08:24:50 +0530 | [diff] [blame] | 155 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 156 | def install_erpnext(install_path): |
| 157 | print |
| 158 | print "-"*80 |
| 159 | print "Installing ERPNext" |
| 160 | print "-"*80 |
| 161 | |
| 162 | # ask for details |
| 163 | global root_password |
| 164 | if not root_password: |
| 165 | root_password = get_root_password() |
| 166 | test_root_connection(root_password) |
| 167 | |
| 168 | db_name = raw_input("ERPNext Database Name: ") |
| 169 | if not db_name: |
| 170 | raise Exception, "Sorry! You must specify ERPNext Database Name" |
| 171 | |
| 172 | # install folders and conf |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 173 | setup_folders(install_path) |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 174 | setup_conf(install_path, db_name) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 175 | |
| 176 | # setup paths |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 177 | sys.path.extend([".", "lib", "app"]) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 178 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 179 | # install database, run patches, update schema |
| 180 | setup_db(install_path, root_password, db_name) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 181 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 182 | setup_cron(install_path) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 183 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 184 | setup_apache_conf(install_path) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 185 | |
| 186 | def get_root_password(): |
| 187 | # ask for root mysql password |
| 188 | import getpass |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 189 | root_pwd = None |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 190 | root_pwd = getpass.getpass("MySQL Root user's Password: ") |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 191 | return root_pwd |
| 192 | |
| 193 | def test_root_connection(root_pwd): |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 194 | out = exec_in_shell("mysql -u root %s -e 'exit'" % \ |
| 195 | (("-p"+root_pwd) if root_pwd else "").replace('$', '\$').replace(' ', '\ ')) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 196 | if "access denied" in out.lower(): |
| 197 | raise Exception("Incorrect MySQL Root user's password") |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 198 | |
| 199 | def setup_folders(install_path): |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 200 | app = os.path.join(install_path, "app") |
| 201 | if not os.path.exists(app): |
| 202 | print "Cloning erpnext" |
Anand Doshi | 08352ca | 2013-07-17 08:24:50 +0530 | [diff] [blame] | 203 | exec_in_shell("cd %s && git clone https://github.com/webnotes/erpnext.git app" % install_path) |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 204 | exec_in_shell("cd app && git config core.filemode false") |
Anand Doshi | 7d3e75d | 2013-07-24 19:01:02 +0530 | [diff] [blame] | 205 | if not os.path.exists(app): |
| 206 | raise Exception, "Couldn't clone erpnext repository" |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 207 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 208 | lib = os.path.join(install_path, "lib") |
| 209 | if not os.path.exists(lib): |
| 210 | print "Cloning wnframework" |
Anand Doshi | 08352ca | 2013-07-17 08:24:50 +0530 | [diff] [blame] | 211 | exec_in_shell("cd %s && git clone https://github.com/webnotes/wnframework.git lib" % install_path) |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 212 | exec_in_shell("cd lib && git config core.filemode false") |
Anand Doshi | 7d3e75d | 2013-07-24 19:01:02 +0530 | [diff] [blame] | 213 | if not os.path.exists(lib): |
| 214 | raise Exception, "Couldn't clone wnframework repository" |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 215 | |
| 216 | public = os.path.join(install_path, "public") |
| 217 | for p in [public, os.path.join(public, "files"), os.path.join(public, "backups"), |
| 218 | os.path.join(install_path, "logs")]: |
| 219 | if not os.path.exists(p): |
| 220 | os.mkdir(p) |
| 221 | |
| 222 | def setup_conf(install_path, db_name): |
| 223 | import os, string, random, re |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 224 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 225 | # generate db password |
| 226 | char_range = string.ascii_letters + string.digits |
| 227 | db_password = "".join((random.choice(char_range) for n in xrange(16))) |
| 228 | |
| 229 | # make conf file |
| 230 | with open(os.path.join(install_path, "lib", "conf", "conf.py"), "r") as template: |
| 231 | conf = template.read() |
| 232 | |
| 233 | conf = re.sub("db_name.*", 'db_name = "%s"' % (db_name,), conf) |
| 234 | conf = re.sub("db_password.*", 'db_password = "%s"' % (db_password,), conf) |
| 235 | |
| 236 | with open(os.path.join(install_path, "conf.py"), "w") as conf_file: |
| 237 | conf_file.write(conf) |
| 238 | |
| 239 | return db_password |
| 240 | |
| 241 | def setup_db(install_path, root_password, db_name): |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 242 | from webnotes.install_lib.install import Installer |
| 243 | inst = Installer("root", root_password) |
Anand Doshi | 08352ca | 2013-07-17 08:24:50 +0530 | [diff] [blame] | 244 | inst.import_from_db(db_name, verbose=1) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 245 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 246 | # run patches and sync |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 247 | exec_in_shell("./lib/wnf.py --patch_sync_build") |
| 248 | |
| 249 | def setup_cron(install_path): |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 250 | erpnext_cron_entries = [ |
| 251 | "*/3 * * * * cd %s && python lib/wnf.py --run_scheduler >> /var/log/erpnext-sch.log 2>&1" % install_path, |
| 252 | "0 */6 * * * cd %s && python lib/wnf.py --backup >> /var/log/erpnext-backup.log 2>&1" % install_path |
| 253 | ] |
| 254 | |
| 255 | for row in erpnext_cron_entries: |
| 256 | try: |
| 257 | existing_cron = exec_in_shell("crontab -l") |
| 258 | if row not in existing_cron: |
| 259 | exec_in_shell('{ crontab -l; echo "%s"; } | crontab' % row) |
| 260 | except: |
| 261 | exec_in_shell('echo "%s" | crontab' % row) |
| 262 | |
| 263 | def setup_apache_conf(install_path): |
| 264 | apache_conf_content = """Listen 8080 |
| 265 | NameVirtualHost *:8080 |
| 266 | <VirtualHost *:8080> |
| 267 | ServerName localhost |
| 268 | DocumentRoot %s/public/ |
| 269 | |
| 270 | AddHandler cgi-script .cgi .xml .py |
| 271 | AddType application/vnd.ms-fontobject .eot |
| 272 | AddType font/ttf .ttf |
| 273 | AddType font/otf .otf |
| 274 | AddType application/x-font-woff .woff |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 275 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 276 | <Directory %s/public/> |
| 277 | # directory specific options |
| 278 | Options -Indexes +FollowSymLinks +ExecCGI |
| 279 | |
| 280 | # directory's index file |
| 281 | DirectoryIndex web.py |
| 282 | |
| 283 | AllowOverride all |
| 284 | Order Allow,Deny |
| 285 | Allow from all |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 286 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 287 | # rewrite rule |
| 288 | RewriteEngine on |
| 289 | RewriteCond %%{REQUEST_FILENAME} !-f |
| 290 | RewriteCond %%{REQUEST_FILENAME} !-d |
| 291 | RewriteCond %%{REQUEST_FILENAME} !-l |
Anand Doshi | 3b44ce5 | 2013-09-12 16:59:12 +0530 | [diff] [blame] | 292 | RewriteRule ^([^/]+)$ /web.py?page=$1 [QSA,L] |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 293 | </Directory> |
| 294 | </VirtualHost>""" % (install_path, install_path) |
| 295 | |
| 296 | new_apache_conf_path = os.path.join(install_path, os.path.basename(install_path)+".conf") |
| 297 | with open(new_apache_conf_path, "w") as apache_conf_file: |
| 298 | apache_conf_file.write(apache_conf_content) |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 299 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 300 | def post_install(install_path): |
| 301 | global apache_user |
| 302 | exec_in_shell("chown -R %s %s" % (apache_user, install_path)) |
| 303 | |
| 304 | apache_conf_filename = os.path.basename(install_path)+".conf" |
| 305 | if is_redhat: |
| 306 | os.symlink(os.path.join(install_path, apache_conf_filename), |
| 307 | os.path.join("/etc/httpd/conf.d", apache_conf_filename)) |
| 308 | exec_in_shell("service httpd restart") |
| 309 | |
| 310 | elif is_debian: |
| 311 | os.symlink(os.path.join(install_path, apache_conf_filename), |
| 312 | os.path.join("/etc/apache2/sites-enabled", apache_conf_filename)) |
| 313 | exec_in_shell("service apache2 restart") |
| 314 | |
| 315 | print |
| 316 | print "-"*80 |
Anand Doshi | cf2cf38 | 2013-08-09 19:39:09 +0530 | [diff] [blame] | 317 | print "To change url domain, run: lib/wnf.py --domain example.com" |
| 318 | print "-"*80 |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 319 | print "Installation complete" |
| 320 | print "Open your browser and go to http://localhost:8080" |
| 321 | print "Login using username = Administrator and password = admin" |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 322 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 323 | def exec_in_shell(cmd): |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 324 | # using Popen instead of os.system - as recommended by python docs |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 325 | from subprocess import Popen |
| 326 | import tempfile |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 327 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 328 | with tempfile.TemporaryFile() as stdout: |
| 329 | with tempfile.TemporaryFile() as stderr: |
| 330 | p = Popen(cmd, shell=True, stdout=stdout, stderr=stderr) |
| 331 | p.wait() |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 332 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 333 | stdout.seek(0) |
| 334 | out = stdout.read() |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 335 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 336 | stderr.seek(0) |
| 337 | err = stderr.read() |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 338 | |
Rushabh Mehta | 54c1545 | 2013-07-16 12:05:41 +0530 | [diff] [blame] | 339 | if err and any((kw in err.lower() for kw in ["traceback", "error", "exception"])): |
| 340 | print out |
| 341 | raise Exception, err |
| 342 | else: |
| 343 | print "." |
| 344 | |
| 345 | return out |
| 346 | |
| 347 | if __name__ == "__main__": |
Rushabh Mehta | a8f9aa0 | 2013-06-21 17:55:43 +0530 | [diff] [blame] | 348 | install() |