wok-6.x diff git/receipt @ rev 19682

Add rclone (sync cloud services from cmdline)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 12 00:38:57 2017 +0100 (2017-02-12)
parents c0e5b40bd091
children 6bd25993e7c8
line diff
     1.1 --- a/git/receipt	Sat Feb 14 21:16:01 2015 +0000
     1.2 +++ b/git/receipt	Sun Feb 12 00:38:57 2017 +0100
     1.3 @@ -43,13 +43,11 @@
     1.4  # edit daemons.conf.
     1.5  post_install()
     1.6  {
     1.7 -	local root
     1.8 -	root=$1
     1.9 -	if ! grep -q 'GIT_OPTIONS' $root/etc/daemons.conf; then
    1.10 -		mkdir -p $root/var/www/git
    1.11 -		echo '# Git daemon options.' >> $root/etc/daemons.conf
    1.12 -		echo 'GIT_REPO="/var/www/git/"' >> $root/etc/daemons.conf
    1.13 -		echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> $root/etc/daemons.conf
    1.14 -		echo '' >> $root/etc/daemons.conf
    1.15 +	if ! grep -q 'GIT_OPTIONS' "$1/etc/daemons.conf"; then
    1.16 +		mkdir -p "$1/var/www/git"
    1.17 +		echo '# Git daemon options.' >> "$1/etc/daemons.conf"
    1.18 +		echo 'GIT_REPO="/var/www/git/"' >> "$1/etc/daemons.conf"
    1.19 +		echo 'GIT_OPTIONS="--detach --syslog --verbose --base-path=$GIT_REPO $GIT_REPO"' >> "$1/etc/daemons.conf"
    1.20 +		echo '' >> "$1/etc/daemons.conf"
    1.21  	fi
    1.22  }