mirror of
https://codeberg.org/privacy1st/arch
synced 2025-01-11 03:46:05 +01:00
update arch-repo
This commit is contained in:
parent
168ae92f8d
commit
43f0e2a461
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
source /etc/de-p1st-repo/arch-repo.cfg || exit
|
source /etc/de-p1st-repo/arch-repo.cfg || exit
|
||||||
|
|
||||||
|
function main() {
|
||||||
|
|
||||||
cd "${LOCAL_PKG_DIR}" || exit
|
cd "${LOCAL_PKG_DIR}" || exit
|
||||||
|
|
||||||
# check if at least one matching file exists
|
# 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
|
# add each new package to database
|
||||||
ssh "${REMOTE_SSH_HOST}" "/usr/bin/arch-repo-receive-new" || exit
|
ssh "${REMOTE_SSH_HOST}" "/usr/bin/arch-repo-receive-new" || exit
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
for LOCAL_PKG_DIR in "${LOCAL_PKG_DIRS[@]}"; do
|
||||||
|
main
|
||||||
|
done
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# REMOTE_PKG_DIR
|
# REMOTE_PKG_DIR
|
||||||
REMOTE_SSH_HOST=rootnas
|
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_PKG_DIR=/mnt/data/live/arch-repo
|
||||||
REMOTE_DB_NAME=de-p1st
|
REMOTE_DB_NAME=de-p1st
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user