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