mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-11 17:39:55 +01:00
mineos: Allow using latest repo
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#!/bin/sh
|
||||
# Install MineOS
|
||||
|
||||
PYTHON_VERSION="311"
|
||||
NODE_VERSION="23"
|
||||
JAVA_VERSION="22"
|
||||
HTTP="0"
|
||||
JAVA_VERSION="22"
|
||||
NODE_VERSION="23"
|
||||
PYTHON_VERSION="311"
|
||||
USE_LATEST_REPO=0
|
||||
|
||||
# Check for Root Privileges
|
||||
if ! [ $(id -u) = 0 ]; then
|
||||
@@ -12,6 +13,12 @@ if ! [ $(id -u) = 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Switch to latest repo
|
||||
if [ "${USE_LATEST_REPO}" -eq 1 ]; then
|
||||
mkdir -p /usr/local/etc/pkg/repos
|
||||
echo 'FreeBSD: { url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest" }' > /usr/local/etc/pkg/repos/FreeBSD.conf
|
||||
fi
|
||||
|
||||
# Install Packages
|
||||
pkg install -y \
|
||||
git-lite \
|
||||
|
||||
Reference in New Issue
Block a user