mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +08:00
fix install-build-deps.sh to run on FreeBSD
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
#!/bin/bash -eu
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Install build dpenedencies.
|
||||
|
||||
set -e
|
||||
set -u
|
||||
|
||||
platform=$(uname -s)
|
||||
|
||||
if [ -e /etc/os-release ]; then
|
||||
@@ -23,6 +26,9 @@ case $platform in
|
||||
yum install -y \
|
||||
gcc make cmake zlib-devel openssl-devel rpm-build
|
||||
;;
|
||||
FreeBSD-freebsd)
|
||||
pkg install cmake
|
||||
;;
|
||||
*)
|
||||
echo "unsupported platform: $platform"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user