summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorLars Müller2006-12-17 11:16:05 +0100
committerLars Müller2006-12-17 11:16:05 +0100
commiteb56eca6b80a86f1b3c63d0329aa8a06b170aec8 (patch)
tree62e066211ba0bac2cbdb1d57ba3b0cb4135f9e09 /installer
parentAdd a default repo type in slxossetup and remove any repo type which is (diff)
downloadcore-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-xinstaller/slxossetup8
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}"