mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-03 03:36:22 -07:00
Don't enable gochan service in vagrant bootstrap, add bbig alias
This commit is contained in:
parent
6085988889
commit
19e27da5a6
1 changed files with 1 additions and 2 deletions
|
@ -41,7 +41,6 @@ if [ "$DBTYPE" == "mysql" ]; then
|
||||||
if [ -d /lib/systemd ]; then
|
if [ -d /lib/systemd ]; then
|
||||||
cp /vagrant/examples/configs/gochan-mysql.service /lib/systemd/system/gochan.service
|
cp /vagrant/examples/configs/gochan-mysql.service /lib/systemd/system/gochan.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable gochan.service
|
|
||||||
fi
|
fi
|
||||||
elif [ "$DBTYPE" == "postgresql" ]; then
|
elif [ "$DBTYPE" == "postgresql" ]; then
|
||||||
# using PostgreSQL (mostly stable)
|
# using PostgreSQL (mostly stable)
|
||||||
|
@ -63,7 +62,6 @@ elif [ "$DBTYPE" == "postgresql" ]; then
|
||||||
if [ -d /lib/systemd ]; then
|
if [ -d /lib/systemd ]; then
|
||||||
cp /vagrant/examples/configs/gochan-postgresql.service /lib/systemd/system/gochan.service
|
cp /vagrant/examples/configs/gochan-postgresql.service /lib/systemd/system/gochan.service
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable gochan.service
|
|
||||||
fi
|
fi
|
||||||
elif [ "$DBTYPE" == "sqlite3" ]; then
|
elif [ "$DBTYPE" == "sqlite3" ]; then
|
||||||
apt install sqlite3
|
apt install sqlite3
|
||||||
|
@ -140,6 +138,7 @@ export GOPATH=/home/vagrant/go
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
su - vagrant <<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
|
mkdir -p /home/vagrant/go
|
||||||
source /home/vagrant/.bashrc
|
source /home/vagrant/.bashrc
|
||||||
cd /vagrant/devtools
|
cd /vagrant/devtools
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue