Ускорена установка taiga

master 75
parent 66ca607696
commit 346ec62e6c

@ -0,0 +1,5 @@
# Calculate run=/bin/bash
ver=$(ls -d /var/db/pkg/dev-db/postgresql-*)
ver=${ver#*postgresql-}
echo ${ver%%.*} > /tmp/pgsqlver

@ -1 +0,0 @@
# Calculate path=/etc name=postgresql-#-cut(1)-#

@ -0,0 +1 @@
# Calculate path=/etc name=postgresql-#-load(char,/tmp/pgsqlver)-#

@ -1,22 +1,24 @@
#!/bin/bash
# Install Taiga in Production
# README: Install Taiga in Production
# https://docs.taiga.io/setup-production.html#_introduction
set -ueo pipefail
export PATH="/lib/rc/bin:$PATH"
scriptpath=$(dirname $(readlink -f $0))
. /var/db/repos/calculate/scripts/ini.sh
echo "Taiga setup"
chown taiga: /var/calculate/ini.env
su - taiga -c '/var/db/repos/container/scripts/taiga/install.sh'
/var/db/repos/container/scripts/taiga/postgresql.sh
/var/db/repos/container/scripts/taiga/rabbitmq.sh
/var/db/repos/container/scripts/taiga/config.sh
su - taiga -c '/var/db/repos/container/scripts/taiga/migrate.sh'
for script in $scriptpath/step/*.sh; do
"$script"
done
if [[ ! -e /etc/runlevels/default/taiga ]]; then
cl-setup-system
rc-update -u
fi
openrc
echo -e "\nAll is done! Open the link ${ini[taiga.protocol]}://${ini[taiga.taiga_sites_domain]} on your browser."

@ -3,7 +3,8 @@
set -ueo pipefail
export PATH="/lib/rc/bin:$PATH"
[[ $UID == 0 ]] && exit
SCRIPT=$(readlink -f $0)
[[ $UID == 0 ]] && exec su - taiga -c "$SCRIPT"
. /var/db/repos/container/scripts/functions.sh
. /var/db/repos/calculate/scripts/ini.sh
@ -22,7 +23,7 @@ set -u
if [[ ! -e ~/taiga-back ]]; then
cd ~
einfo 'Backend Setup: Get the code'
git clone https://github.com/kaleidos-ventures/taiga-back.git taiga-back
git clone --branch stable --depth 1 https://github.com/kaleidos-ventures/taiga-back.git taiga-back
cd taiga-back
git checkout stable
@ -45,7 +46,7 @@ fi
if [[ ! -e ~/taiga-front-dist ]]; then
cd ~
einfo 'Frontend Setup: Get the code'
git clone https://github.com/kaleidos-ventures/taiga-front-dist.git taiga-front-dist
git clone --branch stable --depth 1 https://github.com/kaleidos-ventures/taiga-front-dist.git taiga-front-dist
cd taiga-front-dist
git checkout stable
@ -57,7 +58,7 @@ fi
if [[ ! -e ~/taiga-events ]]; then
cd ~
einfo 'Events Setup: Get the code'
git clone https://github.com/kaleidos-ventures/taiga-events.git taiga-events
git clone --branch stable --depth 1 https://github.com/kaleidos-ventures/taiga-events.git taiga-events
cd taiga-events
git checkout stable
@ -74,7 +75,7 @@ fi
if [[ ! -e ~/taiga-protected ]]; then
cd ~
einfo 'Taiga protected Setup: Get the code'
git clone https://github.com/kaleidos-ventures/taiga-protected.git taiga-protected
git clone --branch stable --depth 1 https://github.com/kaleidos-ventures/taiga-protected.git taiga-protected
cd taiga-protected
git checkout stable

@ -2,12 +2,12 @@
set -ueo pipefail
export PATH="/lib/rc/bin:$PATH"
SCRIPT=$(readlink -f $0)
[[ $UID == 0 ]] && exec su - taiga -c "$SCRIPT"
. /var/db/repos/container/scripts/functions.sh
. /var/db/repos/calculate/scripts/ini.sh
[[ $UID == 0 ]] && exit
data=$(PGPASSWORD=${ini[postgresql.taiga_password]} psql -U ${ini[postgresql.taiga_user]} -d ${ini[postgresql.taiga_database]} -c '\dt' 2>/dev/null)
if [[ -z $data ]]; then
Loading…
Cancel
Save