torsdag 2 april 2015

Linux - Debian - own ppa server use apt-move dpkg-scannpackage "dpkg-dev"

#!/bin/bash
reset
/usr/games/cowsay -t "Local PPA Server update / Reindex"
sleep 5
apt-move get
apt-move move
apt-move packages
cd /var/www/debian/ && dpkg-scanpackages jessie/ /dev/null 2> error.txt | gzip -9c > jessie/Packages.gz
cd /var/www/debian/ && grep "!" < error.txt > rm.txt
#next line is not get tested
#cd /var/www/debian/ && sed 's/dpkg-scanpackages: varning: använde den och ignorerade data från jessie//rm /var/www/debian/jessie/' rm.txt
apt-move sync
reset
sudo /usr/games/cowsay -t "Muuuuuuuhaa! Cya Later!!"
echo "Email:hynten@speed-mailer.com"
echo " "
Skicka en kommentar