mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-07 09:52:41 +00:00
Rough draft of update.
This commit is contained in:
@@ -6,9 +6,21 @@ apt install -y curl
|
||||
echo ::Add NodeJS source to package repo
|
||||
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
||||
|
||||
# Add Mongo CE Source
|
||||
echo ::Add Mongo CE source to package repo
|
||||
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
|
||||
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
|
||||
--dearmor
|
||||
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
|
||||
sudo apt-get update
|
||||
|
||||
# Install required packages
|
||||
echo ::Install Homebrewery requirements
|
||||
apt satisfy -y git nodejs npm mongodb
|
||||
apt satisfy -y git nodejs npm mongodb-org
|
||||
|
||||
# Enable and start Mongo
|
||||
systemctl enable mongod
|
||||
systemctl start mongod
|
||||
|
||||
# Clone Homebrewery repo
|
||||
echo ::Get Homebrewery files
|
||||
@@ -23,9 +35,7 @@ npm audit fix
|
||||
npm run postinstall
|
||||
|
||||
# Create Homebrewery service
|
||||
echo ::Create Homebrewery service
|
||||
ln -s /usr/local/homebrewery/install/ubuntu/etc/systemd/system/homebrewery.service /etc/systemd/system/homebrewery.service
|
||||
systemctl daemon-reload
|
||||
echo ::Create systemctl daemon-reload
|
||||
echo ::Set Homebrewery to start automatically
|
||||
systemctl enable homebrewery
|
||||
|
||||
|
||||
Reference in New Issue
Block a user