dists/scripts/set_ugid_quota.sh: fixes/enhancements
Rework this script to:
1. Use cat and shell's "here document" instead of echo
2. Remove error message printing ("Can't create script file") since
it is now printed by cat itself.
3. Use awk to prevent changing /etc/mtab if it is already fixed for
quota on case.
4. Remove old/questionable reiserfs reference. No one knowns why it was there,
(reiserfs quota tools? who knows).
5. Try to get device name from the file, if not found revert to supplied one.
6. Add old RedHat/chkconfig style header to init script
7. Try to use chkconfig (Red Hat / RHEL / CentOS etc.)
and update-rc.d (Debian/Ubuntu) before reverting to the old manual
method.
This is still a work in progress, there might be bugs.
This could fix item (3) from http://bugzilla.openvz.org/1734
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed