feat(gitea): ssh setup
This commit is contained in:
parent
fad2cac15b
commit
e4d199f5e4
@ -1,7 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
[ "$EUID" != 0 ] && { echo "This script need to run as root" >&2; exit 1; }
|
||||
|
||||
docker-compose up --no-start --build
|
||||
chown -R 1000:1000 /var/lib/docker/volumes/gitea_*
|
||||
docker-compose up -d --build
|
19
gitea/setup.sh
Executable file
19
gitea/setup.sh
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
[ "$EUID" != 0 ] && { echo "This script need to run as root" >&2; exit 1; }
|
||||
|
||||
docker-compose up --no-start --build
|
||||
chown -R 1000:1000 /var/lib/docker/volumes/gitea_*
|
||||
docker-compose up -d --build
|
||||
|
||||
(
|
||||
. ./.env
|
||||
echo -n "\n\ngo to https://$BASE_URL, setup gitea and press enter\n\n"
|
||||
read -r
|
||||
)
|
||||
|
||||
sed -i -e "s/^SSH_PORT.*/SSH_PORT = $SSH_PORT/" \
|
||||
-e 's/^SSH_LISTEN_PORT.*/SSH_LISTEN_PORT = 2222/' \
|
||||
/var/lib/docker/volumes/gitea_config/_data/app.ini
|
||||
|
||||
docker-compose restart gitea
|
Loading…
Reference in New Issue
Block a user