added some exceptions for drive H:

This commit is contained in:
Michael H.G. Schmidt 2023-12-27 21:55:52 +01:00
parent 4593b7df4d
commit d88c225e42
2 changed files with 25 additions and 3 deletions

View File

@ -218,7 +218,7 @@ if %install_aerolite% == 1 (
echo Creating workspace folder ...
mkdir "%USERPROFILE%"\workspace 1>nul 2>nul
echo Setting up SSH client ...
echo Setting up SSH client config ...
mkdir "%USERPROFILE%"\.ssh 1>nul 2>nul
copy /Y %TOOLS%\scripts\config\ssh-config.txt "%USERPROFILE%"\.ssh\config 1>nul 2>nul
@ -263,7 +263,6 @@ reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" ^
/v "ShowSecondsInSystemClock" /t REG_DWORD /d 1 /f 1>nul
echo Setting the "GLOBAL" view mode for windows EXPLORER ...
echo.
powershell -command %TOOLS%\scripts\set-explorer-viewmode.ps1
echo.
@ -503,6 +502,18 @@ rem ===========
rem USER RIGHTS
rem ===========
if "%HOMEDRIVE%%HOMEPATH%" NEQ "%USERPROFILE%" (
echo Creating workspace folder (domain drive)...
mkdir "%HOMEDRIVE%%HOMEPATH%"\workspace 1>nul 2>nul
echo Setting up SSH client config (domain drive)...
mkdir "%HOMEDRIVE%\%HOMEPATH%"\.ssh 1>nul 2>nul
copy /Y %TOOLS%\scripts\config\ssh-config.txt "%HOMEDRIVE%%HOMEPATH%"\.ssh\config 1>nul 2>nul
echo Installing a VIM configuration (domain drive)...
copy /Y %TOOLS%\scripts\config\vimrc.txt "%HOMEDRIVE%%HOMEPATH%"\.vimrc 1>nul 2>nul
)
echo.
echo Cleaning users home directory
echo ########################################

View File

@ -88,14 +88,25 @@ rem SSH keys ...
if EXIST %GITWORKDIR%\%gitrepo% (
echo copying users SSH keys ...
copy /Y %GITWORKDIR%\%gitrepo%\id*.* %USERPROFILE%\.ssh 2>nul
if "%HOMEDRIVE%%HOMEPATH%" NEQ "%USERPROFILE%" (
echo copying users gitconfig (domain drive) ...
copy /Y %GITWORKDIR%\%gitrepo%\id*.* "%HOMEDRIVE%%HOMEPATH%"\.ssh 2>nul
)
)
rem GIT
rem GITCONFIG ...
if EXIST %GITWORKDIR%\%gitrepo%\gitconfig (
echo copying users gitconfig ...
copy /Y %GITWORKDIR%\%gitrepo%\gitconfig %USERPROFILE%\.gitconfig
if "%HOMEDRIVE%%HOMEPATH%" NEQ "%USERPROFILE%" (
echo copying users gitconfig (domain drive) ...
copy /Y %GITWORKDIR%\%gitrepo%\gitconfig "%HOMEDRIVE%%HOMEPATH%"\.gitconfig
)
)
rem create a statusfile (this codeblock must be executed only once per user) ...
echo 1 >%PERSONALFILES_DONE%