]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
Changed the folder name used in the signer box 1894/head
authorAdam Kraitman <akraitma@redhat.com>
Sun, 22 Aug 2021 12:23:18 +0000 (15:23 +0300)
committerAdam Kraitman <akraitma@redhat.com>
Tue, 14 Sep 2021 14:11:32 +0000 (17:11 +0300)
Signed-off-by: Adam Kraitman <akraitma@redhat.com>
scripts/nfs-ganesha/pull-sign-push
scripts/nfs-ganesha/sign-rpm-auto
scripts/nfs-ganesha/sync-push-auto

index 664f2e7c68c59d2c9b234f81df2a08c8ccbbfdba..f891748a4c09032d81b5486b861df9545904948b 100644 (file)
@@ -7,20 +7,20 @@ today_items=$(ssh ubuntu@chacra.ceph.com 'find /opt/repos/nfs-ganesha-stable -ne
 if [ -n "$today_items" ]; then
 echo "pulling nfs-ganesha packages from chacra"
 echo "********************************************"
-[[ -d /opt/new-repos/ ]] | mkdir -p /opt/new-repos/
+[[ -d /opt/nfs-ganesha/new-repos/ ]] | mkdir -p /opt/nfs-ganesha/new-repos/
   for item in $today_items; do
-   sync_cmd="ubuntu@chacra.ceph.com:$item /opt/new-repos/"
+   sync_cmd="ubuntu@chacra.ceph.com:$item /opt/nfs-ganesha/new-repos/"
    rsync -Lavh --progress --relative $sync_cmd
   done
 
   # sign the rpm's that wore pulled today
 
 echo "signing rpms"
-bash ./sign-rpms-auto
+bash /home/ubuntu/ceph-build/scripts/nfs-ganesha/sign-rpms-auto
 
   # syncing the singed rpm's to download.ceph.com
 
 echo "pushing rpms to download.ceph.com"
-bash ./sync-push-auto
+bash /home/ubuntu/ceph-build/scripts/nfs-ganesha/sync-push-auto
 
 fi
index 226bdda00b6bb1de158805acfd0bca6b28582edf..d034ab5fafc4dfeccac19958467558ae3c5fe2d3 100644 (file)
@@ -5,7 +5,7 @@
 keyid=460F3994
 GPG_PASSPHRASE=''
 
-path="/opt/new-repos/"
+path="/opt/nfs-ganesha/new-repos/"
 echo $path
 update_repo=0
 cd $path
@@ -38,7 +38,7 @@ if [[ $update_repo -eq 1 ]]; then
 fi
 
 # finally, update the repo metadata
-repodirs=$( find /opt/new-repos/ -type d -name x86_64 | cut -d/ -f 13 --complement )
+repodirs=$( find /opt/nfs-ganesha/new-repos/ -type d -name x86_64 | cut -d/ -f 13 --complement )
 if [ -n "$repodirs" ]; then
   for directory in $repodirs
   do
index e6702bee9ab0f00e2f36cc5a730166eed0533210..d88715110f92b48e89f11e3aa918fa77277a6db2 100644 (file)
@@ -5,7 +5,7 @@
 releases=( V3.5 V2.7 )
 ceph_version=( octopus ceph_pacific )
 
-repodirs=$( find /opt/new-repos/ -type d -name x86_64 | cut -d/ -f 13 --complement )
+repodirs=$( find /opt/nfs-ganesha/new-repos/ -type d -name x86_64 | cut -d/ -f 13 --complement )
 for dir in "$repodirs"; do
    for i in "${releases[@]}"; do
       for v in "${ceph_version[@]}"; do
@@ -14,8 +14,8 @@ for dir in "$repodirs"; do
        if [ $find_release == '1' ] && [ $find_version == '1' ]; then
            release=$i
            version=$v
-           ssh signer@download.ceph.com "mkdir -p /data/download.ceph.com/www/nfs-ganesha-new/rpm-$release-stable/$version/el8" && el8_cmd="$dir/* signer@download.ceph.com:/data/download.ceph.com/www/nfs-ganesha-new/rpm-$release-stable/$version/el8" &&  rsync --progress -avr $el8_cmd
-           rm -rf /opt/new-repos/*
+           ssh signer@download.ceph.com "mkdir -p /data/download.ceph.com/www/nfs-ganesha/rpm-$release-stable/$version/el8" && el8_cmd="$dir/* signer@download.ceph.com:/data/download.ceph.com/www/nfs-ganesha/rpm-$release-stable/$version/el8" &&  rsync --progress -avr $el8_cmd
+           rm -rf /opt/nfs-ganesha/new-repos/*
        fi
       done
    done