15 lines
305 B
Bash
Executable File
15 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -e $1 ]; then
|
|
pkg=/tmp/$1
|
|
cp $1 $pkg
|
|
sudo chown repo:repo $pkg
|
|
shift
|
|
sudo -u repo HOME=/data/repo local-repo repo -a $pkg "$@"
|
|
else
|
|
sudo -u repo HOME=/data/repo local-repo repo -A "$@"
|
|
fi
|
|
[[ "$?" != "0" ]] && exit $?
|
|
echo Now you can install the package
|
|
echo $ pacman -Sy $@
|