dot

packages and services management
Log | Files | Refs | README

commit 878e8ad61278d1a1f61dae657bf10cca3f720ba2
parent 43ac7f69ec65e0463c22b7fa2decb304bf4ffa06
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun,  8 Jul 2018 19:15:15 +0200

Merge branch 'master' of /root/conf

Diffstat:
Mbin/mv-sane | 20+++++++++-----------
Muser/qmail/add | 14+++++++-------
2 files changed, 16 insertions(+), 18 deletions(-)

diff --git a/bin/mv-sane b/bin/mv-sane @@ -1,17 +1,15 @@ -#!/9/bin/rc -e +#!/bin/sh -e # remove evil characters -if (! ~ $#* 0) cd $1 +test $# = 0 || cd $1 -ifs=' +IFS=' ' -for (file in `{find . -depth ! -path .}) { - new=`{dirname $file}^/^`{ - basename $file | +find . -depth ! -path . | while IFS='' read file +do new=$(dirname "$file")/$( + basename "$file" | tr -s '\t #&;*?<>|"''()[]{}\_=+' - | sed -r 's,^([0-9]*)\.*,\1,; s,^-,,; s,-$,,' - } - - if (! test $file '=' $new) - mv $file $new -} + ) + test "$file" = "$new" || mv "$file" "$new" +done diff --git a/user/qmail/add b/user/qmail/add @@ -4,12 +4,12 @@ mkdir -p /home/qmail/ ! groupadd nofiles -useradd -g nofiles -d /home/qmail/alias/ -s "$(command -v true)" alias -useradd -g nofiles -d /home/qmail/ -s "$(command -v true)" qmaild -useradd -g nofiles -d /home/qmail/ -s "$(command -v true)" qmaill -useradd -g nofiles -d /home/qmail/ -s "$(command -v true)" qmailp +useradd -g nofiles -d /home/qmail/alias/ -s "$(which true)" alias +useradd -g nofiles -d /home/qmail/ -s "$(which true)" qmaild +useradd -g nofiles -d /home/qmail/ -s "$(which true)" qmaill +useradd -g nofiles -d /home/qmail/ -s "$(which true)" qmailp ! groupadd qmail -useradd -g qmail -d /home/qmail/ -s "$(command -v true)" qmailq -useradd -g qmail -d /home/qmail/ -s "$(command -v true)" qmailr -useradd -g qmail -d /home/qmail/ -s "$(command -v true)" qmails +useradd -g qmail -d /home/qmail/ -s "$(which true)" qmailq +useradd -g qmail -d /home/qmail/ -s "$(which true)" qmailr +useradd -g qmail -d /home/qmail/ -s "$(which true)" qmails