fix: Write PACKAGER_PRIVKEY to builduser's ~/.abuild/abuild.conf (standard abuild behavior)
Some checks failed
CI/CD Pipeline / Code Format (push) Successful in 11s
CI/CD Pipeline / Build RPM Package (push) Has been cancelled
CI/CD Pipeline / Build Alpine Package (push) Has been cancelled
CI/CD Pipeline / Build Arch Package (push) Has been cancelled
CI/CD Pipeline / Build Debian Package (push) Has been cancelled
Some checks failed
CI/CD Pipeline / Code Format (push) Successful in 11s
CI/CD Pipeline / Build RPM Package (push) Has been cancelled
CI/CD Pipeline / Build Alpine Package (push) Has been cancelled
CI/CD Pipeline / Build Arch Package (push) Has been cancelled
CI/CD Pipeline / Build Debian Package (push) Has been cancelled
This commit is contained in:
9
build-alpine.sh
Executable file → Normal file
9
build-alpine.sh
Executable file → Normal file
@ -103,8 +103,13 @@ if [ "$(id -u)" = "0" ]; then
|
|||||||
echo "Key file: $KEYFILE"
|
echo "Key file: $KEYFILE"
|
||||||
echo "Key file exists: $(test -f "$KEYFILE" && echo YES || echo NO)"
|
echo "Key file exists: $(test -f "$KEYFILE" && echo YES || echo NO)"
|
||||||
|
|
||||||
# CRITICAL: Export PACKAGER_PRIVKEY (double quotes for variable expansion!)
|
# CRITICAL: Write to builduser's PERSONAL abuild.conf (~/.abuild/abuild.conf)
|
||||||
export PACKAGER_PRIVKEY="$KEYFILE"
|
# abuild reads this when running as builduser - standard behavior, no shell quoting issues!
|
||||||
|
echo "PACKAGER_PRIVKEY=\"$KEYFILE\"" > /home/builduser/.abuild/abuild.conf
|
||||||
|
chown builduser:builduser /home/builduser/.abuild/abuild.conf
|
||||||
|
echo "builduser abuild.conf:"
|
||||||
|
cat /home/builduser/.abuild/abuild.conf
|
||||||
|
|
||||||
su - builduser -c "cd $(pwd) && abuild checksum && abuild -F -r"
|
su - builduser -c "cd $(pwd) && abuild checksum && abuild -F -r"
|
||||||
else
|
else
|
||||||
abuild checksum
|
abuild checksum
|
||||||
|
|||||||
Reference in New Issue
Block a user