run as www-data

This commit is contained in:
Carneiro 2025-04-04 15:09:39 -03:00
parent 02a04c0af0
commit 7283fc890f
1 changed files with 3 additions and 3 deletions

View File

@ -46,11 +46,11 @@ runs:
dpkg-deb --build ${PKG_NAME} dpkg-deb --build ${PKG_NAME}
echo "Moving package to ppa..." echo "Moving package to ppa..."
mv ${PKG_NAME}.deb /var/www/html/debian/pool/main sudo -u www-data cp ${PKG_NAME}.deb /var/www/html/debian/pool/main
cd /var/www/html/debian cd /var/www/html/debian
echo "Creating Packages file..." echo "Creating Packages file..."
dpkg-scanpackages pool/ > dists/stable/main/binary-amd64/Packages sudo -u www-data dpkg-scanpackages pool/ > dists/stable/main/binary-amd64/Packages
echo "Creating Relase file..." echo "Creating Relase file..."
apt-ftparchive -c /var/www/html/debian/apt-ftparchive.conf release /var/www/html/debian/dists/stable > /var/www/html/debian/dists/stable/Release sudo -u www-data apt-ftparchive -c /var/www/html/debian/apt-ftparchive.conf release /var/www/html/debian/dists/stable > /var/www/html/debian/dists/stable/Release