mineos: Allow using latest repo

This commit is contained in:
tschettervictor
2025-06-15 22:46:02 -06:00
committed by GitHub
parent 5287441e15
commit fd9b88af7c

View File

@@ -1,10 +1,11 @@
#!/bin/sh #!/bin/sh
# Install MineOS # Install MineOS
PYTHON_VERSION="311"
NODE_VERSION="23"
JAVA_VERSION="22"
HTTP="0" HTTP="0"
JAVA_VERSION="22"
NODE_VERSION="23"
PYTHON_VERSION="311"
USE_LATEST_REPO=0
# Check for Root Privileges # Check for Root Privileges
if ! [ $(id -u) = 0 ]; then if ! [ $(id -u) = 0 ]; then
@@ -12,6 +13,12 @@ if ! [ $(id -u) = 0 ]; then
exit 1 exit 1
fi 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 # Install Packages
pkg install -y \ pkg install -y \
git-lite \ git-lite \