# must do a remove first to un-do the "bad" links created by previous version
system ('update-rc.d -f sudo remove >/dev/null 2>&1');
-system ('update-rc.d sudo start 75 2 3 4 5 S . >/dev/null');
+system ('update-rc.d sudo start 75 2 3 4 5 . >/dev/null');
+
+# create symlink to ease transition to new path for ldap config
+# if old config file exists and new one doesn't
+if (-e "/etc/ldap/ldap.conf" && ! -e "/etc/sudo-ldap.conf") {
+ system("ln -s ldap/ldap.conf /etc/sudo-ldap.conf");
+}
# make sure we have a sudo group
print "Creating group 'sudo' with gid = $gid\n";
system("groupadd -g $gid sudo");
-# create symlink to ease transition to new path for ldap config
-# if old config file exists and new one doesn't
-if (-e "/etc/ldap/ldap.conf" && ! -e "/etc/sudo-ldap.conf") {
- system("ln -s ldap/ldap.conf /etc/sudo-ldap.conf");
-}
-
print "";