# get package from https://packager.io
sudo rpm --import https://rpm.packager.io/key
echo "[openproject]
name=Repository for crohr/openproject application.
baseurl=https://rpm.packager.io/gh/crohr/openproject/centos6/packaging-rpm
enabled=1" | sudo tee /etc/yum.repos.d/openproject.repo
sudo yum install -y openproject
# install dependencies
yum install -y memcached
yum install -y mysql-server
yum install -y httpd
# enable http access
lokkit -s http
# add simple apache config
cat > /etc/httpd/conf.d/welcome.conf <<EOF
<VirtualHost *:80>
ServerName example.com
<Location />
ProxyPass http://localhost:6000/ retry=0
</Location>
</VirtualHost>
EOF
# start all services
/etc/init.d/httpd start
/etc/init.d/memcached start
/etc/init.d/mysqld start
# create db user and database
mysql -u root -e "GRANT USAGE ON *.* TO [email protected] identified by 'pass';"
mysql -u root -e "CREATE DATABASE IF NOT EXISTS openproject CHARACTER SET utf8;"
mysql -u root -e "GRANT ALL PRIVILEGES ON openproject.* to [email protected]; FLUSH PRIVILEGES;"
openproject config:set DATABASE_URL=mysql2://user:[email protected]/openproject
openproject config:set SECRET_TOKEN=some-secret
openproject run rake db:migrate db:seed
openproject scale web=1 worker=1
- cron that creates svn repositories
- /var/db/openproject/files should be automatically created by postinstall script
- obviously, all the svn-dav configuration has to be manually setup
openproject run check
script (some parts make too many assumptions)