summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xezjail-admin23
1 files changed, 12 insertions, 11 deletions
diff --git a/ezjail-admin b/ezjail-admin
index 0fddbb9..2f03cf3 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -680,17 +680,18 @@ create)
680# BEFORE: DAEMON 680# BEFORE: DAEMON
681# PROVIDE: ezjail-config 681# PROVIDE: ezjail-config
682# 682#
683case "$1" in 683name=ezjail-config
684 *start) 684start_cmd=flavour_setup
685 rm -f "/etc/rc.d/ezjail-config" 685
686 for ezjail_flavour in /ezjail.flavour.*; do 686flavour_setup() {
687 [ -x "${ezjail_flavour}" ] && "${ezjail_flavour}" 687 # N.B.: Do NOT rm $0, it points to /etc/rc
688 rm -f "${ezjail_flavour}" 688 rm -f "/etc/rc.d/ezjail-config"
689 done 689 for ezjail_flavour in /ezjail.flavour.*; do
690 ;; 690 [ -x "${ezjail_flavour}" ] && "${ezjail_flavour}"
691 *) 691 rm -f "${ezjail_flavour}"
692 ;; 692 done
693esac 693}
694run_rc_command "$1"
694EOF 695EOF
695 chmod 0755 "${ezjail_rootdir}/etc/rc.d/ezjail-config" 696 chmod 0755 "${ezjail_rootdir}/etc/rc.d/ezjail-config"
696 fi 697 fi