wok-next diff mariadb/receipt @ rev 19978
Receipts v2: xmlrpc-c, yaml, zeromq.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 18 03:15:00 2017 +0300 (2017-10-18) |
parents | 92e8a75bdf91 |
children | bca48f3b8bb3 |
line diff
1.1 --- a/mariadb/receipt Tue Jun 03 08:06:16 2014 +0000 1.2 +++ b/mariadb/receipt Wed Oct 18 03:15:00 2017 +0300 1.3 @@ -83,10 +83,10 @@ 1.4 user=mysql 1.5 group=mysql 1.6 1.7 - if ! grep -q $user $1/etc/passwd; then 1.8 + if ! grep -q $user "$1/etc/passwd"; then 1.9 echo -n "Adding user/group $user..." 1.10 - chroot $1/ addgroup -S $group 1.11 - chroot $1/ adduser -s /bin/false -S -D -H -G $group $user 1.12 + chroot "$1/" addgroup -S $group 1.13 + chroot "$1/" adduser -s /bin/false -S -D -H -G $group $user 1.14 status 1.15 fi 1.16 1.17 @@ -104,9 +104,9 @@ 1.18 pre_install() 1.19 { 1.20 # Cleanup old files 1.21 - rm -f $1/usr/libexec/mysql* 1.22 + rm -f "$1/usr/libexec/mysql"* 1.23 # Mv config 1.24 - [ -f $1/etc/my.cnf ] && mv -f $1/etc/my.cnf $1/etc/mysql/my.cnf 1.25 + [ -f "$1/etc/my.cnf" ] && mv -f "$1/etc/my.cnf" "$1/etc/mysql/my.cnf" 1.26 } 1.27 1.28 post_remove()