2017-08-08 19:13:59 +00:00
|
|
|
#!/bin/bash
|
2017-09-11 18:53:54 +00:00
|
|
|
# Script to initialize khanat server
|
2017-08-10 16:27:18 +00:00
|
|
|
#
|
2017-09-11 18:53:54 +00:00
|
|
|
# Copyright (C) 2017 AleaJactaEst
|
2017-08-27 14:38:04 +00:00
|
|
|
#
|
2017-09-11 18:53:54 +00:00
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2017-08-27 14:38:04 +00:00
|
|
|
|
2017-09-11 18:53:54 +00:00
|
|
|
# /opt/dist/docker/server/init-khanat.sh
|
2017-08-27 14:38:04 +00:00
|
|
|
|
2017-10-09 20:10:36 +00:00
|
|
|
/opt/serverimage_init_basic.sh || exit 2
|
|
|
|
/opt/serverimage_configure_environment.sh || exit 2
|
|
|
|
/opt/serverimage_install_package.sh || exit 2
|
|
|
|
/opt/serverimage_configure_apache.sh || exit 2
|
|
|
|
/opt/serverimage_configure_database.sh || exit 2
|
|
|
|
/opt/serverimage_initialize_khanat_server.sh || exit 2
|
|
|
|
/opt/serverimage_initialize_patch_server.sh || exit 2
|
|
|
|
/opt/serverimage_prepare_khanat_client.sh || exit 2
|
2017-09-15 20:44:13 +00:00
|
|
|
|
2017-08-10 16:27:18 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Stop All
|
|
|
|
#
|
2017-08-08 19:13:59 +00:00
|
|
|
|
2017-08-10 16:27:18 +00:00
|
|
|
service ssh stop || exit 2
|
2017-08-08 19:13:59 +00:00
|
|
|
service apache2 stop|| exit 2
|
|
|
|
service mysql stop || exit 2
|
2017-09-11 18:53:54 +00:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|