summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2012-01-09 23:40:45 +0000
committererdgeist <erdgeist@erdgeist.org>2012-01-09 23:40:45 +0000
commit7e51a9b14e7d3c7b3f0672c6ae7c244ef4421547 (patch)
tree0807bfec3d490c25f276a43d09165881923933ae
parent680eb0975c4e2fc0c618d63f78d93d49e11738e8 (diff)
Counting ezjail-flavours did not work correctly
-rwxr-xr-xezjail-admin4
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 22a459a..3436ef8 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -671,8 +671,8 @@ create)
671 # If an old style flavour config is found, make it auto run on jails startup 671 # If an old style flavour config is found, make it auto run on jails startup
672 if [ -f "${ezjail_rootdir}/ezjail.flavour" ]; then 672 if [ -f "${ezjail_rootdir}/ezjail.flavour" ]; then
673 chmod 0755 "${ezjail_rootdir}/ezjail.flavour" 673 chmod 0755 "${ezjail_rootdir}/ezjail.flavour"
674 mv "${ezjail_rootdir}/ezjail.flavour" "${ezjail_rootdir}/ezjail.flavour".`printf %04d $(( installed_flavours+=1 ))` 674 mv "${ezjail_rootdir}/ezjail.flavour" "${ezjail_rootdir}/ezjail.flavour".`printf %04d ${installed_flavours}`
675 echo "Note: Shell scripts for flavour ${ezjail_flavour} installed, flavourizing on jails first startup." 675 [ $(( installed_flavours+=1 )) == 1 ] && echo "Note: Shell scripts for flavour ${ezjail_flavour} installed, flavourizing on jails first startup."
676 676
677 cat > "${ezjail_rootdir}/etc/rc.d/ezjail-config" <<"EOF" 677 cat > "${ezjail_rootdir}/etc/rc.d/ezjail-config" <<"EOF"
678#!/bin/sh 678#!/bin/sh