mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
639 B
26 lines
639 B
1 year ago
|
#!/bin/bash
|
||
|
|
||
|
service postgresql start && \
|
||
|
sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD 'password';" && \
|
||
|
sudo -u postgres psql -c "ALTER USER postgres WITH SUPERUSER;" && \
|
||
|
sudo service postgresql restart
|
||
|
|
||
|
export RUNNER_ALLOW_RUNASROOT="1"
|
||
|
|
||
|
REG_TOKEN=$REG_TOKEN
|
||
|
|
||
|
DEFAULT_RUNNER_NAME="$(cat /etc/hostname)"
|
||
|
|
||
|
cd /home/docker/actions-runner
|
||
|
|
||
|
./config.sh --url https://github.com/nocodb/nocohub --token ${REG_TOKEN} --name ${DEFAULT_RUNNER_NAME}
|
||
|
|
||
|
cleanup() {
|
||
|
echo "Removing runner..."
|
||
|
./config.sh remove --unattended --token ${REG_TOKEN}
|
||
|
}
|
||
|
|
||
|
trap 'cleanup; exit 130' INT
|
||
|
trap 'cleanup; exit 143' TERM
|
||
|
|
||
|
./run.sh & wait $!
|