mirror of
https://github.com/tschettervictor/bsd-apps.git
synced 2025-12-12 18:10:05 +01:00
mineos: Allow using latest repo
This commit is contained in:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user