File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ emit "Installing mountpoint-s3 v${MOUNTPOINT_S3_VERSION} for s3 bucket mounting.
2424if type apk > /dev/null 2>&1 ; then
2525 apk update
2626 apk add --no-cache curl gnupg
27+ elif type dnf > /dev/null 2>&1 ; then
28+ dnf install -y curl gnupg2
2729elif type apt-get > /dev/null 2>&1 ; then
2830 apt-get update
2931 apt-get install -y curl gnupg
Original file line number Diff line number Diff line change @@ -26,6 +26,23 @@ if ! which gcsfuse >/dev/null 2>&1; then
2626 go install github.com/googlecloudplatform/gcsfuse/v2@master
2727 cp ${GOPATH} /bin/gcsfuse /usr/bin/gcsfuse
2828
29+ elif type dnf > /dev/null 2>&1 ; then
30+ emit " Installing gcsfuse from yum repo..."
31+ dnf install -y fuse
32+ if ! dnf repolist | grep -q gcsfuse; then
33+ cat > /etc/yum.repos.d/gcsfuse.repo << 'EOF '
34+ [gcsfuse]
35+ name=gcsfuse (packages.cloud.google.com)
36+ baseurl=https://packages.cloud.google.com/yum/repos/gcsfuse-el7-x86_64
37+ enabled=1
38+ gpgcheck=1
39+ repo_gpgcheck=0
40+ gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg
41+ https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
42+ EOF
43+ fi
44+ dnf install -y gcsfuse
45+
2946 elif type apt-get > /dev/null 2>&1 ; then
3047 emit " Installing gcsfuse from apt package..."
3148
Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ rm -f "${USER_SSH_DIR}/id_rsa.tmp"
4343if type apk > /dev/null 2>&1 ; then
4444 apk update
4545 apk add --no-cache openssh-client
46+ elif type dnf > /dev/null 2>&1 ; then
47+ dnf install -y openssh-clients
4648elif type apt-get > /dev/null 2>&1 ; then
4749 apt-get update
4850 apt-get install -y openssh-client
Original file line number Diff line number Diff line change 112112if type apk > /dev/null 2>&1 ; then
113113 apk update
114114 apk add --no-cache jq curl fuse tar wget
115+ elif type dnf > /dev/null 2>&1 ; then
116+ dnf install -y jq curl fuse tar wget
115117elif type apt-get > /dev/null 2>&1 ; then
116118 apt-get update
117- apt install -y jq curl fuse tar wget
119+ apt-get install -y jq curl fuse tar wget
118120else
119121 >&2 echo " ERROR: Unable to find a supported package manager"
120122 exit 1
You can’t perform that action at this time.
0 commit comments