3 # vim:set ts=2 sw=2 et:
5 # arg 1: the new package version
10 # arg 1: the new package version
12 echo ">>> Creating redmine user and group and setting permissions..."
13 getent group redmine
>/dev
/null || usr
/sbin
/groupadd redmine
14 getent passwd redmine
>/dev
/null || usr
/sbin
/useradd
-c 'Redmine PMS' -g redmine
-d '/' -s /bin
/false redmine
15 usr
/bin
/passwd
-l redmine
&>/dev
/null
20 mkdir public
/plugin_assets
21 chown
-R redmine
:redmine files log tmp public
/plugin_assets
22 chmod -R 755 files log tmp public
/plugin_assets
24 echo ">>> Generating session store secret..."
25 rake config
/initializers
/session_store.rb
29 >>> You can run Redmine in a couple of different ways:
30 >>> * Apache (via passenger)
31 >>> * WEBrick (standalone included webserver) - script/ruby -e production
33 >>> When running via WEBrick, you can start the daemon via:
34 >>> /etc/rc.d/redmine start
35 >>> Alternatively add "redmine" to the DAEMONS array in /etc/rc.conf.
37 >>> To run it i Apache, add the following into the section
38 >>> "Supplemental configuration" of /etc/httpd/conf/httpd.conf.
40 Include conf/extra/httpd-redmine.conf
42 >>> After the installation you should create the database (in MySQL)
43 >>> with the following commands:
45 >>> mysql> create database redmine character set utf8;
46 >>> mysql> create user 'redmine'@'localhost' identified by 'redmine'
47 >>> mysql> grant all privileges on redmine.* to 'redmine'@'localhost'
48 >>> rake db:migrate RAILS_ENV="production"
50 >>> Furthermore you could add some default data with:
51 >>> rake redmine:load_default_data
53 >>> Default login and password are admin/admin. Remember to change these.
55 >>> Further installation help can be found at:
56 >>> http://www.redmine.org/wiki/redmine/RedmineInstall
60 # arg 1: the new package version
61 # arg 2: the old package version
66 # arg 1: the new package version
67 # arg 2: the old package version
70 echo ">>> Clearing cache and existing sessions..."
72 rake tmp
:sessions
:clear
73 echo ">>> Remember to update you database with"
74 echo ">>> rake db:migrate RAILS_ENV=\"production\" >/dev/null"
77 # arg 1: the old package version
79 usr
/sbin
/userdel redmine
&>/dev
/null
80 usr
/sbin
/groupdel redmine
&>/dev
/null
83 # arg 1: the old package version