diff --git a/resolver/docker/scripts/install_resolver.sh b/resolver/docker/scripts/install_resolver.sh deleted file mode 100755 index 6394c9c..0000000 --- a/resolver/docker/scripts/install_resolver.sh +++ /dev/null @@ -1,32 +0,0 @@ -#! /usr/bin/env bash - -# instalace resolveru -yum -y install unzip - -chmod 777 /usr/share/tomcat/webapps - -su postgres -mkdir /tmp/czidlo -cd /tmp/czidlo - -wget https://github.com/NLCR/CZIDLO/releases/download/v4.3.alpha/CZIDLO_4.3.alpha-installation.zip.zip -unzip CZIDLO_4.3.alpha-installation.zip.zip - -psql -a -f initDatabase_4.3.alpha.sql -cp *.war /usr/share/tomcat/webapps - -cat > /usr/share/tomcat/conf/context.xml < - - -EOF - -systemctl restart tomcat \ No newline at end of file diff --git a/resolver/docker/scripts/install_resolver2_root.sh b/resolver/docker/scripts/install_resolver2_root.sh new file mode 100755 index 0000000..f46fef8 --- /dev/null +++ b/resolver/docker/scripts/install_resolver2_root.sh @@ -0,0 +1,19 @@ +#! /usr/bin/env bash + +cp /tmp/czidlo/*.war /usr/share/tomcat7/webapps + +cat > /usr/share/tomcat7/conf/context.xml < + + +EOF + +# systemctl restart tomcat diff --git a/resolver/docker/scripts/install_resolver_postgres.sh b/resolver/docker/scripts/install_resolver_postgres.sh new file mode 100755 index 0000000..d1801cf --- /dev/null +++ b/resolver/docker/scripts/install_resolver_postgres.sh @@ -0,0 +1,9 @@ +#! /usr/bin/env bash + +mkdir /tmp/czidlo +cd /tmp/czidlo + +wget https://github.com/NLCR/CZIDLO/releases/download/v4.3.alpha/CZIDLO_4.3.alpha-installation.zip.zip +unzip CZIDLO_4.3.alpha-installation.zip.zip + +psql -a -f initDatabase_4.3.alpha.sql