[conspire] Permissions for a script
sundquistjames at gmail.com
Tue Apr 17 12:03:32 PDT 2012
I'm looking for clarification. I wrote a script for system upgrades with
755 permissions and wondering how best to improve it. How do I not use
sudo on any of the commands?
# Backup current mirrorlist
sudo mv /etc/pacman.d/mirrorlist mv/etc/pacman.d/mirrorlist.SAF
# Find top 6 local mirrors and save as mirrorlist
sudo reflector -l "United States" 6 rank --save /etc/pacman.d/mirrorlist
# Re-sync mirrors and upgrade system just like you would with apt-get
sudo pacman -Syyu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the conspire