hammer v2
September 9th, 2008, 12:41 AM
Hey Guys,
I'm trying to make a BASH script that makes metapackages.
I've hit a problem
I get permission errors when trying to run;
sudo dpkg-scanpackages . /dev/null | sudo gzip -9c > Packages.gz
If I run sudo su or sudo -i first it will work great in the terminal but not in a BASH script (The script stops).
Any Ideas how to get around this? I'm stumped. Thanks!
H.
I'm trying to make a BASH script that makes metapackages.
I've hit a problem
I get permission errors when trying to run;
sudo dpkg-scanpackages . /dev/null | sudo gzip -9c > Packages.gz
If I run sudo su or sudo -i first it will work great in the terminal but not in a BASH script (The script stops).
Any Ideas how to get around this? I'm stumped. Thanks!
H.