update arch-repo

This commit is contained in:
Daniel Langbein 2021-05-13 13:57:01 +00:00
parent 168ae92f8d
commit 43f0e2a461
2 changed files with 45 additions and 40 deletions

View File

@ -2,8 +2,7 @@
source /etc/de-p1st-repo/arch-repo.cfg || exit
function main() {
cd "${LOCAL_PKG_DIR}" || exit
# check if at least one matching file exists
@ -46,3 +45,9 @@ rsync --ignore-times --checksum --progress --human-readable \
# add each new package to database
ssh "${REMOTE_SSH_HOST}" "/usr/bin/arch-repo-receive-new" || exit
}
for LOCAL_PKG_DIR in "${LOCAL_PKG_DIRS[@]}"; do
main
done

View File

@ -3,7 +3,7 @@
# REMOTE_PKG_DIR
REMOTE_SSH_HOST=rootnas
LOCAL_PKG_DIR=/home/custompkgs
LOCAL_PKG_DIRS=('/home/custompkgs' '/home/yoda/Downloads/git/arch/out')
REMOTE_PKG_DIR=/mnt/data/live/arch-repo
REMOTE_DB_NAME=de-p1st