[Slackbuilds-users] "# Keep same perms on rc.INIT.new" in doinst.sh

Robby Workman rworkman at slackbuilds.org
Wed Dec 16 14:38:48 UTC 2009


On Wed, 16 Dec 2009 08:30:37 -0600
Robby Workman <rworkman at slackbuilds.org> wrote:

>   preserve_perms() {
>     NEW="$1"
>     OLD="$(dirname $NEW)/$(basename $NEW .new)"
>     if [ -e $OLD ]; then
>       cp -a $OLD ${NEW}.incoming
>       cat $NEW > ${NEW}.incoming
>       mv ${NEW}.incoming $NEW
>     fi
+     config $NEW
>   }

-RW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20091216/eadb40f6/attachment.asc>


More information about the SlackBuilds-users mailing list