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."
|
||||
|
Loading…
Reference in new issue