diff options
author | erdgeist <erdgeist@erdgeist.org> | 2006-01-16 06:12:02 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2006-01-16 06:12:02 +0000 |
commit | 468db0dfb5451ebbdf26dfd25a46ff86e0da3d05 (patch) | |
tree | 7aba0a49df12f10e7b4616393ba6313883ec1a89 /ezjail-admin | |
parent | 3014e8e36bf3946c1302e9734cafa24ee85101cf (diff) |
We need to test for soft link, not for regular file
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ezjail-admin b/ezjail-admin index 25d0a1e..dd3a5ce 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -282,15 +282,15 @@ setup|update) | |||
282 | if [ -f ${ezjail_jailbase}/usr/ports/CVS/Root ]; then | 282 | if [ -f ${ezjail_jailbase}/usr/ports/CVS/Root ]; then |
283 | echo -n "Updating ports from "; cat ${ezjail_jailbase}/usr/ports/CVS/Root | 283 | echo -n "Updating ports from "; cat ${ezjail_jailbase}/usr/ports/CVS/Root |
284 | echo "Gathering local information may take a while." | 284 | echo "Gathering local information may take a while." |
285 | cd ${ezjail_jailbase}/usr/ports/; cvs up -Pd | 285 | cd ${ezjail_jailbase}/usr/ports/; cvs up -Pd; |
286 | else | 286 | else |
287 | echo "Checking out ports from ${ezjail_portscvsroot}" | 287 | echo "Checking out ports from ${ezjail_portscvsroot}" |
288 | mkdir -p ${ezjail_jailbase}/usr/ports/ | 288 | mkdir -p ${ezjail_jailbase}/usr/ports/ |
289 | cd ${ezjail_jailbase}/usr/; cvs -d ${ezjail_portscvsroot} co ports | 289 | cd ${ezjail_jailbase}/usr/; cvs -d ${ezjail_portscvsroot} co ports; |
290 | fi | 290 | fi |
291 | 291 | ||
292 | [ $? = 0 ] || exerr "Updating ports failed." | 292 | [ $? = 0 ] || exerr "Updating ports failed." |
293 | [ -f ${ezjail_jailtmeplate}/usr/ports ] || ln -s /basejail/usr/ports ${ezjail_jailtemplate}/usr/ports | 293 | [ -e ${ezjail_jailtemplate}/usr/ports ] || ln -s /basejail/usr/ports ${ezjail_jailtemplate}/usr/ports |
294 | 294 | ||
295 | fi | 295 | fi |
296 | 296 | ||