1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-27 11:26:22 -07:00

Don't require screen in get_pre2021.sh

This commit is contained in:
Eggbertx 2024-12-29 16:54:36 -08:00
parent 3bec5d2c3d
commit 89c7a64da0

View file

@ -10,11 +10,6 @@ RELEASE_DIR="gochan-${TESTING_VERSION}_linux"
RELEASE_GZ="$RELEASE_DIR.tar.gz"
RELEASE_URL="https://github.com/gochan-org/gochan/releases/download/$TESTING_VERSION/$RELEASE_GZ"
if [ -z "$STY" ]; then
echo "This command should be run from a screen instance"
echo "Example: screen -S get_pre2021 $0"
exit 1
fi
if [ "$USER" != "vagrant" ]; then
echo "This must be run in the vagrant VM (expected \$USER to be vagrant, got $USER)"
@ -29,7 +24,7 @@ echo "Extracting $RELEASE_GZ"
tar -xf gochan-v2.12.0_linux.tar.gz
cd $RELEASE_DIR
cp examples/configs/gochan.example.json gochan.json
cp sample-configs/gochan.example.json gochan.json
echo "Modifying $PWD/gochan.json for testing migration"
sed -i gochan.json \
-e 's/"Port": .*/"Port": 9000,/' \
@ -64,4 +59,4 @@ else
exit 1
fi
sudo ./gochan
sudo ./gochan