30 lines
629 B
Batchfile
30 lines
629 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
set "SOURCE=%~dp0..\public\perspektivwerk"
|
|
set "TARGET=boogie:html/perspektivwerk/"
|
|
set "CONFIG=%~dp0..\public\booking-config.php"
|
|
|
|
if not exist "%CONFIG%" (
|
|
echo Konfiguration fehlt: %CONFIG%
|
|
exit /b 1
|
|
)
|
|
|
|
echo Lade den Perspektivwerk-DocumentRoot und die Konfiguration nach %TARGET% hoch ...
|
|
scp -r "%SOURCE%" "%CONFIG%" "%TARGET%"
|
|
|
|
if errorlevel 1 (
|
|
echo Upload fehlgeschlagen.
|
|
exit /b 1
|
|
)
|
|
|
|
echo Setze Leseberechtigungen auf %TARGET% ...
|
|
ssh boogie "chmod -R a+rX html/perspektivwerk/"
|
|
|
|
if errorlevel 1 (
|
|
echo Berechtigungen konnten nicht gesetzt werden.
|
|
exit /b 1
|
|
)
|
|
|
|
echo Upload abgeschlossen.
|