1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-02 15:06:23 -07:00

Don't enable gochan service in vagrant bootstrap, add bbig alias

This commit is contained in:
Eggbertx 2024-01-21 16:48:50 -08:00
parent 6085988889
commit 19e27da5a6

View file

@ -41,7 +41,6 @@ if [ "$DBTYPE" == "mysql" ]; then
if [ -d /lib/systemd ]; then
cp /vagrant/examples/configs/gochan-mysql.service /lib/systemd/system/gochan.service
systemctl daemon-reload
systemctl enable gochan.service
fi
elif [ "$DBTYPE" == "postgresql" ]; then
# using PostgreSQL (mostly stable)
@ -63,7 +62,6 @@ elif [ "$DBTYPE" == "postgresql" ]; then
if [ -d /lib/systemd ]; then
cp /vagrant/examples/configs/gochan-postgresql.service /lib/systemd/system/gochan.service
systemctl daemon-reload
systemctl enable gochan.service
fi
elif [ "$DBTYPE" == "sqlite3" ]; then
apt install sqlite3
@ -140,6 +138,7 @@ export GOPATH=/home/vagrant/go
EOF
su - vagrant <<EOF
echo 'alias bbig="cd /vagrant && ./build.py && sudo ./build.py install && sudo -E ./gochan"' >> /home/vagrant/.bash_aliases
mkdir -p /home/vagrant/go
source /home/vagrant/.bashrc
cd /vagrant/devtools