Skip to content

Commit

Permalink
Merge pull request #64 from lima-vm/sftp-server
Browse files Browse the repository at this point in the history
Add option to install openssh-sftp-server
  • Loading branch information
jandubois authored May 20, 2022
2 parents 0ace2e8 + cfb4d51 commit a0c2cbf
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions edition/ci
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source edition/min
LIMA_INSTALL_CLOUD_INIT=true
LIMA_INSTALL_OPENSSH_SFTP_SERVER=true
1 change: 1 addition & 0 deletions edition/k3s
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ source edition/min
LIMA_INSTALL_CLOUD_INIT=true
LIMA_INSTALL_K3S=true
LIMA_INSTALL_LOGROTATE=true
LIMA_INSTALL_OPENSSH_SFTP_SERVER=true
1 change: 1 addition & 0 deletions edition/min
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ export LIMA_INSTALL_IPTABLES=false
export LIMA_INSTALL_LIMA_INIT=false
export LIMA_INSTALL_LOGROTATE=false
export LIMA_INSTALL_NERDCTL=false
export LIMA_INSTALL_OPENSSH_SFTP_SERVER=false
export LIMA_INSTALL_SSHFS=false
1 change: 1 addition & 0 deletions edition/rd
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ LIMA_INSTALL_IPTABLES=true
LIMA_INSTALL_LIMA_INIT=true
LIMA_INSTALL_LOGROTATE=true
LIMA_INSTALL_NERDCTL=true
LIMA_INSTALL_OPENSSH_SFTP_SERVER=true
LIMA_INSTALL_SSHFS=true
1 change: 1 addition & 0 deletions edition/std
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ LIMA_INSTALL_BINFMT_MISC=true
LIMA_INSTALL_CA_CERTIFICATES=true
LIMA_INSTALL_IPTABLES=true
LIMA_INSTALL_LOGROTATE=true
LIMA_INSTALL_OPENSSH_SFTP_SERVER=true
LIMA_INSTALL_SSHFS=true
4 changes: 4 additions & 0 deletions genapkovl-lima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ if [ "${LIMA_INSTALL_NERDCTL}" == "true" ]; then
done
fi

if [ "${LIMA_INSTALL_OPENSSH_SFTP_SERVER}" == "true" ]; then
echo "openssh-sftp-server" >> "$tmp"/etc/apk/world
fi

if [ "${LIMA_INSTALL_SSHFS}" == "true" ]; then
echo "sshfs" >> "$tmp"/etc/apk/world
fi
Expand Down
3 changes: 3 additions & 0 deletions mkimg.lima.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ profile_lima() {
if [ "${LIMA_INSTALL_LOGROTATE}" == "true" ]; then
apks="$apks logrotate"
fi
if [ "${LIMA_INSTALL_OPENSSH_SFTP_SERVER=true}" == "true" ]; then
apks="$apks openssh-sftp-server"
fi
if [ "${LIMA_INSTALL_SSHFS}" == "true" ]; then
apks="$apks sshfs"
fi
Expand Down

0 comments on commit a0c2cbf

Please sign in to comment.