refactor: restructure rpm repo path to distro/version/arch layout
Some checks failed
poll-upstream / check (push) Failing after 1s
Some checks failed
poll-upstream / check (push) Failing after 1s
Move from /var/www/rpm/mistralrs/fedora-43/x86_64/ to /var/www/rpm/fedora/43/x86_64/ so the repo can host packages from multiple projects under a conventional hierarchy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
RPM_DIR="${1:?usage: $0 <rpm-directory>}"
|
||||
REMOTE_DIR="/var/www/rpm/mistralrs/fedora-43/x86_64"
|
||||
REMOTE_DIR="/var/www/rpm/fedora/43/x86_64"
|
||||
|
||||
# sign each rpm with the imported gpg key
|
||||
for rpm in "${RPM_DIR}"/*.rpm; do
|
||||
|
||||
@@ -34,7 +34,7 @@ else
|
||||
echo "failed to create or observe gitea_ci user on ${nginx_host}"
|
||||
exit 1
|
||||
fi
|
||||
if ssh ${nginx_host} "sudo install --directory /var/www/rpm && sudo setfacl -R -m u:gitea_ci:rwx /var/www/rpm/ && sudo chcon -Rt httpd_sys_content_t /var/www/rpm/"; then
|
||||
if ssh ${nginx_host} "sudo install --directory --mode 0755 /var/www/rpm/fedora/43/x86_64 && sudo setfacl -R -m u:gitea_ci:rwx /var/www/rpm/ && sudo chcon -Rt httpd_sys_content_t /var/www/rpm/"; then
|
||||
echo "rpm repo directory created and permissions set on ${nginx_host}"
|
||||
else
|
||||
echo "failed to create rpm repo directory on ${nginx_host}"
|
||||
|
||||
Reference in New Issue
Block a user