diff options
author | Lars Müller | 2006-12-17 11:16:05 +0100 |
---|---|---|
committer | Lars Müller | 2006-12-17 11:16:05 +0100 |
commit | eb56eca6b80a86f1b3c63d0329aa8a06b170aec8 (patch) | |
tree | 62e066211ba0bac2cbdb1d57ba3b0cb4135f9e09 /installer | |
parent | Add a default repo type in slxossetup and remove any repo type which is (diff) | |
download | core-eb56eca6b80a86f1b3c63d0329aa8a06b170aec8.tar.gz core-eb56eca6b80a86f1b3c63d0329aa8a06b170aec8.tar.xz core-eb56eca6b80a86f1b3c63d0329aa8a06b170aec8.zip |
Only try to copy from prereqfiles if the directory exists.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@559 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/slxossetup | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/installer/slxossetup b/installer/slxossetup index 82c6b9d8..818626d9 100755 --- a/installer/slxossetup +++ b/installer/slxossetup @@ -136,9 +136,11 @@ function slxossetup_rpm() fi # Install prerequired files - cp -a "${SLX_SYSTEM_CONFIG_PATH}"/prereqfiles/* "${SLX_STAGE1_PATH}" - find "${SLX_STAGE1_PATH}" -type d -name .svn -print0 | \ - xargs -0 rm -rf + if test -d "${SLX_SYSTEM_CONFIG_PATH}/prereqfiles"; then + cp -a "${SLX_SYSTEM_CONFIG_PATH}"/prereqfiles/* "${SLX_STAGE1_PATH}" + find "${SLX_STAGE1_PATH}" -type d -name .svn -print0 | \ + xargs -0 rm -rf + fi test -x "${SLX_SYSTEM_CONFIG_PATH}"/scripts/postprereq && \ "${SLX_SYSTEM_CONFIG_PATH}"/scripts/postprereq "${SLX_STAGE1_PATH}" |