Fix install path in install.sh
This commit is contained in:
parent
203a70bdbd
commit
8be2bb2083
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Configure ActiveMQ
|
# Configure ActiveMQ
|
||||||
mkdir -p /srv/activemq/data
|
mkdir -p /srv/activemq/data
|
||||||
|
@ -2,6 +2,6 @@
|
|||||||
<td>{{ app_title }}</td>
|
<td>{{ app_title }}</td>
|
||||||
<td class="center"><input type="checkbox" class="app-visible"{% if app not in conf['apps'] %} disabled{% elif conf['apps'][app]['visible'] %} checked{% endif %}></td>
|
<td class="center"><input type="checkbox" class="app-visible"{% if app not in conf['apps'] %} disabled{% elif conf['apps'][app]['visible'] %} checked{% endif %}></td>
|
||||||
<td class="center"><input type="checkbox" class="app-autostart"{% if app not in conf['apps'] %} disabled{% elif is_service_autostarted(app) %} checked{% endif %}></td>
|
<td class="center"><input type="checkbox" class="app-autostart"{% if app not in conf['apps'] %} disabled{% elif is_service_autostarted(app) %} checked{% endif %}></td>
|
||||||
<td>{% if app not in conf['apps'] %} N/A{% elif is_service_started(app) %}<span class="info">Spuštěna</span>{% else %}<span class="error">Zastavena</span>{% endif %}</td>
|
<td>{% if app not in conf['apps'] %} Není nainstalována{% elif is_service_started(app) %}<span class="info">Spuštěna</span>{% else %}<span class="error">Zastavena</span>{% endif %}</td>
|
||||||
<td>{% if app not in conf['apps'] %}<a href="#" class="app-install">Instalovat</a>{% else %}{% if is_service_started(app) %}<a href="#" class="app-stop">Zastavit</a>{% else %}<a href="#" class="app-start">Spustit</a>{% endif %}, <a href="#" class="app-uninstall">Odinstalovat</a>{% endif %}</td>
|
<td>{% if app not in conf['apps'] %}<a href="#" class="app-install">Instalovat</a>{% else %}{% if is_service_started(app) %}<a href="#" class="app-stop">Zastavit</a>{% else %}<a href="#" class="app-start">Spustit</a>{% endif %}, <a href="#" class="app-uninstall">Odinstalovat</a>{% endif %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Configure CKAN DataPusher
|
# Configure CKAN DataPusher
|
||||||
mkdir -p /srv/ckan-datapusher/conf /srv/ckan-datapusher/data
|
mkdir -p /srv/ckan-datapusher/conf /srv/ckan-datapusher/data
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Configure FrontlineSMS
|
# Configure FrontlineSMS
|
||||||
mkdir -p /srv/frontlinesms/data
|
mkdir -p /srv/frontlinesms/data
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Create MariaDB instance
|
# Create MariaDB instance
|
||||||
mkdir -p /srv/mariadb/conf /srv/mariadb/data
|
mkdir -p /srv/mariadb/conf /srv/mariadb/data
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/activemq ] && service activemq start && STOP_ACTIVEMQ=1
|
[ ! -e /run/openrc/started/activemq ] && service activemq start && STOP_ACTIVEMQ=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Configure OpenMapKit
|
# Configure OpenMapKit
|
||||||
export OPENMAPKIT_ADMIN_USER="admin"
|
export OPENMAPKIT_ADMIN_USER="admin"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Create Postgres instance
|
# Create Postgres instance
|
||||||
mkdir -p /srv/postgres/data
|
mkdir -p /srv/postgres/data
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Create RabbitMQ directory structure
|
# Create RabbitMQ directory structure
|
||||||
mkdir -p /srv/rabbitmq/data
|
mkdir -p /srv/rabbitmq/data
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Configure Redis
|
# Configure Redis
|
||||||
mkdir -p /srv/redis/conf /srv/redis/data
|
mkdir -p /srv/redis/conf /srv/redis/data
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
export TEMPLATE=${TEMPLATE:-"default"}
|
export TEMPLATE=${TEMPLATE:-"default"}
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
[ ! -e /run/openrc/started/postgres ] && service postgres start && STOP_POSTGRES=1
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Configure Solr
|
# Configure Solr
|
||||||
mkdir -p /srv/solr/data
|
mkdir -p /srv/solr/data
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd $(realpath $(dirname "${0}"))/setup
|
cd $(realpath $(dirname "${0}"))/install
|
||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
[ ! -e /run/openrc/started/mariadb ] && service mariadb start && STOP_MARIADB=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user