initial commit
This commit is contained in:
14
update_repo
Executable file
14
update_repo
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
set -u
|
||||
source ./CONFIG
|
||||
mkdir -p repo/dists
|
||||
mkdir -p repo/pool
|
||||
mkdir -p repo/dists/default/main/binary-amd64/
|
||||
cd repo
|
||||
dpkg-scanpackages -a amd64 pool > ./dists/default/main/binary-amd64/Packages
|
||||
cd dists/default/
|
||||
apt-ftparchive -c ../../../repo.conf release . > Release
|
||||
gpg -a --yes --clearsign --output InRelease --local-user "$SIGNING_KEY_EMAIL" --detach-sign Release
|
||||
cd ../../../
|
||||
rsync -aAXPv --delete repo/ "$TARGET_SERVER":"$TARGET_PATH"
|
||||
ssh "$TARGET_SERVER" chown -R "$TARGET_OWNER" "$TARGET_PATH"
|
Reference in New Issue
Block a user