summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-01-16 06:12:02 +0000
committererdgeist <erdgeist@erdgeist.org>2006-01-16 06:12:02 +0000
commit468db0dfb5451ebbdf26dfd25a46ff86e0da3d05 (patch)
tree7aba0a49df12f10e7b4616393ba6313883ec1a89 /ezjail-admin
parent3014e8e36bf3946c1302e9734cafa24ee85101cf (diff)
We need to test for soft link, not for regular file
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin6
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