From d9fcf8512bb029bdf7b83e20e26f384e5073d674 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Sat, 24 Aug 2019 08:04:48 +0000 Subject: [PATCH] changed for rsync usage instead of git --- add_package.sh | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/add_package.sh b/add_package.sh index 5c78b47..16e46ca 100755 --- a/add_package.sh +++ b/add_package.sh @@ -1,6 +1,24 @@ #!/bin/bash -CHDIR=$(dirname "$(realpath $0)")/chroot +CHDIR=$(dirname "$(realpath $0)")/chroot +RUSER=joelgrun +RLOC=35.225.177.191 +RPATH=/var/www/joelg.cf/html/ + mount --bind $CHDIR $CHDIR -$CHDIR/bin/arch-chroot $CHDIR su joel -c "cd /build/repo; git clone $1" +$CHDIR/bin/arch-chroot $CHDIR su joel -c "cd /build/repo; + git clone https://aur.archlinux.org/$1.git + cd $1; + makepkg -s --noconfirm; + ln $1-*.pkg.tar.xz ../x86_64/; + cd ../x86_64; + #rm Chizi123.db Chizi123.files; + repo-add ../Chizi123.db.tar.xz $1-*.pkg.tar.xz; + #ln ../Chizi123.db.tar.xz Chizi123.db; + #ln ../Chizi123.files.tar.xz Chizi123.files; + cd ../; + rsync -aL --delete x86_64 $RUSER@$RLOC:$RPATH;" + #git add x86_64/; + #git commit -m \"added $1\"; + #git push" umount $CHDIR -- Gitblit v1.9.3