move release script to Makefile

This commit is contained in:
iofq
2024-09-19 00:05:47 -05:00
committed by André Roth
parent 5e86a0b9e6
commit 056df39a3c
4 changed files with 43 additions and 16 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# cleanup
rm -rf /app/build/tmp
usermod -u `stat -c %u /app` aptly >/dev/null
chown -R `stat -c %u /app` /var/lib/aptly
su - aptly -c "cd /app; export GOPATH=/app/.go; make release"