summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-11-15 19:20:50 +0000
committererdgeist <erdgeist@erdgeist.org>2006-11-15 19:20:50 +0000
commit21627ca92f06122cc600e7f7a1372d0f8f863981 (patch)
tree524a3089e2890bd26a3e5b9780129ca6e04cb941 /ezjail-admin
parent8a6f906148ed9e758c42d605e83c11fd7d99a2f4 (diff)
mixed up basename with dirname... fixed
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 9ab376b..f742e3d 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -625,7 +625,7 @@ config)
625 # The new values for the jail 625 # The new values for the jail
626 ezjail_new_hostname=`echo -n ${ezjail_new_name} | tr '/~' '__'` 626 ezjail_new_hostname=`echo -n ${ezjail_new_name} | tr '/~' '__'`
627 ezjail_new_safename=`echo -n "${ezjail_new_name}" | tr -c '[:alnum:]' _` 627 ezjail_new_safename=`echo -n "${ezjail_new_name}" | tr -c '[:alnum:]' _`
628 ezjail_new_rootdir=`basename -- ${ezjail_rootdir}`/${ezjail_new_hostname} 628 ezjail_new_rootdir=`dirname -- ${ezjail_rootdir}`/${ezjail_new_hostname}
629 ezjail_new_config=${ezjail_jailcfgs}/${ezjail_new_safename} 629 ezjail_new_config=${ezjail_jailcfgs}/${ezjail_new_safename}
630 [ "${ezjail_config}" = "${ezjail_config%.norun}" ] || ezjail_new_config=${ezjail_jailcfgs}/${ezjail_new_safename}.norun 630 [ "${ezjail_config}" = "${ezjail_config%.norun}" ] || ezjail_new_config=${ezjail_jailcfgs}/${ezjail_new_safename}.norun
631 ezjail_new_softlink=${ezjail_jaildir}/`basename -- ${ezjail_new_rootdir}` 631 ezjail_new_softlink=${ezjail_jaildir}/`basename -- ${ezjail_new_rootdir}`