mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 14:11:27 +00:00
Merge pull request #2742 from htgoebel/patch-2
Vagrantfile: Fix set-up of cygwin and its sshd.
This commit is contained in:
commit
f3fc546c9d
1 changed files with 6 additions and 4 deletions
10
Vagrantfile
vendored
10
Vagrantfile
vendored
|
@ -200,24 +200,26 @@ def packages_cygwin(version)
|
|||
cd /d C:\\cygwin\\CygWin\\bin
|
||||
regtool set /HKLM/SYSTEM/CurrentControlSet/Services/OpenSSHd/ImagePath "C:\\cygwin\\CygWin\\bin\\cygrunsrv.exe"
|
||||
bash -c "ssh-host-config --no"
|
||||
bash -c "chown sshd_server /cygdrive/c/cygwin/CygWin/var/empty"
|
||||
' > /cygdrive/c/cygwin/install.bat
|
||||
cd /cygdrive/c/cygwin && cmd.exe /c install.bat
|
||||
|
||||
echo "alias mkdir='mkdir -p'" > ~/.profile
|
||||
echo "export CYGWIN_ROOT=/cygdrive/c/cygwin/CygWin" >> ~/.profile
|
||||
echo 'export PATH=$PATH:$CYGWIN_ROOT/bin' >> ~/.profile
|
||||
echo 'export PATH=$CYGWIN_ROOT/bin:$PATH' >> ~/.profile
|
||||
|
||||
echo '' > ~/.bash_profile
|
||||
|
||||
cmd.exe /c 'setx /m PATH "%PATH%;C:\\cygwin\\CygWin\\bin"'
|
||||
cmd.exe /c 'setx /m PATH "C:\\cygwin\\CygWin\\bin;%PATH%"'
|
||||
source ~/.profile
|
||||
cd /cygdrive/c/cygwin && cmd.exe /c install.bat
|
||||
|
||||
echo 'db_home: windows' > $CYGWIN_ROOT/etc/nsswitch.conf
|
||||
EOF
|
||||
end
|
||||
|
||||
def install_cygwin_venv
|
||||
return <<-EOF
|
||||
easy_install-3.4 pip
|
||||
python3 -m ensurepip -U --default-pip
|
||||
pip install virtualenv
|
||||
EOF
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue