#! /bin/sh # Read configuration values . /etc/gitlab/gitlab-debian.conf echo "Initializing database..." su ${gitlab_user} -s /bin/sh -c 'bundle exec rake db:create db:schema:load' echo "Precompiling assets..." su ${gitlab_user} -s /bin/sh -c 'bundle exec rake assets:precompile' su ${gitlab_user} -s /bin/sh -c 'touch public/source.tar.gz'