Commit 09f15887 authored by João Furtado Resende's avatar João Furtado Resende

le-server: Start apache service before le-server service

Signed-off-by: 's avatarJoão Furtado Resende <jfr12@c3sl.ufpr.br>
parent 1bb486f9
Package: le-server
Priority: optional
Section: main
Version: 0.0.36
Version: 0.0.40
Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br>
Description: Linux Educacional 5.0 server tools
Architecture: all
......
......@@ -23,16 +23,14 @@
a2dissite 000-default
a2ensite le-server
cd /var/www/educ
update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 1000
update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.1 1000
update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.1 1000 &>/dev/null
update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.1 1000 &>/dev/null
gem install bundler --no-ri --no-rdoc
bundle install
bundle exec rake db:migrate
update-rc.d -f le-server-educ start 95 2 3 4 5 .
service apache2 restart
service le-server-educ start
echo "Instalação completa...
Para acessar o portal digite o seguinte endereço no browser:
http://localhost/educ"
update-rc.d -f le-server-educ start 95 2 3 4 5 .
service le-server-educ start
exit 0
......@@ -20,7 +20,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.
service le-server-educ stop
rm -fr /var/www/educ/ || true
a2dissite le-server
rm -fr /etc/apache2/sites-enabled/le-server || true
update-rc.d -f le-server-educ remove || true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment