mirror of
https://github.com/upa/mscp.git
synced 2026-05-22 05:17:29 +08:00
add install-build-deps.sh and fix docker build procedure
This commit is contained in:
16
install-build-deps.sh
Executable file
16
install-build-deps.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
source /etc/os-release
|
||||
set -x
|
||||
|
||||
case $ID in
|
||||
ubuntu*)
|
||||
apt-get install -y gcc make cmake libssh-dev
|
||||
;;
|
||||
centos* | rhel*)
|
||||
dnf install -y gcc make cmake libssh-devel rpm-build
|
||||
;;
|
||||
*)
|
||||
echo "unsupported dependency install: $ID"
|
||||
exit 1
|
||||
esac
|
||||
Reference in New Issue
Block a user